allow public uses of structs; add sample program

This commit is contained in:
2020-04-12 17:13:08 +01:00
parent fd4a682ade
commit bef39f9b8b
15 changed files with 132 additions and 61 deletions

View File

@@ -2,9 +2,9 @@ use crate::colour::Colour;
#[derive(Debug, Eq, PartialEq)]
pub struct Palette {
pub(crate) id: String, // base36 string (why??)
pub(crate) name: Option<String>,
pub(crate) colours: Vec<Colour>,
pub id: String, // base36 string (why??)
pub name: Option<String>,
pub colours: Vec<Colour>,
}
impl From<String> for Palette {