aboutsummaryrefslogtreecommitdiff
path: root/common/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/lib.rs')
-rw-r--r--common/src/lib.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index f3d8416..3f535fd 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, Asset>,
+ pub pictures: BTreeMap<PictureSlot, Picture>,
pub credits: BTreeMap<CreditCategory, Vec<Appearance>>,
pub identifiers: BTreeMap<IdentifierType, String>,
pub visibility: Visibility,
@@ -78,10 +78,8 @@ pub struct Node {
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, PartialOrd, Ord)]
#[serde(rename_all = "snake_case")]
pub enum PictureSlot {
- Poster,
Cover,
Backdrop,
- Headshot,
}
#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, PartialOrd, Ord)]
@@ -105,8 +103,9 @@ pub enum IdentifierType {
Omdb,
}
-#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
-pub struct Asset(pub PathBuf);
+// TODO custom b64 ser
+#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone, Copy)]
+pub struct Picture(pub [u8; 32]);
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct Appearance {