use serde::{Deserialize, Serialize};

/// MSN object representing data like display pictures.
#[derive(Serialize, Deserialize, Clone, Debug)]
#[cfg_attr(feature = "uniffi", derive(uniffi::Record))]
#[serde(rename = "msnobj")]
pub struct MsnObject {
    #[serde(rename = "@Creator")]
    pub creator: String,
    #[serde(rename = "@Size")]
    pub size: u32,
    #[serde(rename = "@Type")]
    pub object_type: u16,
    #[serde(rename = "@Location")]
    pub location: String,
    #[serde(rename = "@Friendly")]
    pub friendly: String,
    #[serde(rename = "@SHA1D")]
    pub sha1d: String,
    #[serde(rename = "@SHA1C")]
    pub sha1c: Option<String>,
    #[serde(rename = "@contenttype")]
    pub content_type: Option<String>,
}
