diff options
Diffstat (limited to 'common/src/lib.rs')
| -rw-r--r-- | common/src/lib.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs index cf79cc5..670d9af 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -68,7 +68,7 @@ pub struct Node { pub federated: Option<String>, pub tags: BTreeSet<String>, pub ratings: BTreeMap<RatingType, f64>, - pub pictures: BTreeMap<PictureSlot, Picture>, + pub pictures: BTreeMap<PictureSlot, Asset>, pub credits: BTreeMap<CreditCategory, Vec<Appearance>>, pub identifiers: BTreeMap<IdentifierType, String>, pub visibility: Visibility, @@ -104,9 +104,8 @@ pub enum IdentifierType { Omdb, } -// TODO custom b64 ser -#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone, Copy)] -pub struct Picture(pub [u8; 32]); +#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone, Hash)] +pub struct Asset(pub String); #[derive(Debug, Clone, Deserialize, Serialize)] pub struct Appearance { |