#[derive(Clone, Debug)] pub struct Metadata { pub bytes: u32, pub hash: String, pub r#type: String, } #[derive(Clone, Debug)] pub struct Data { pub hash: String, pub data_b64: String, } #[derive(Clone, Debug)] pub struct Avatar(Vec); impl From for Metadata { fn from(value: stanza::xep_0084::Info) -> Self { Self { bytes: value.bytes, hash: value.id, r#type: value.r#type, } } } impl From for Data { fn from(value: stanza::xep_0084::Data) -> Self { Self { hash: todo!(), data_b64: todo!(), } } }