pub struct GetAttributesResponse {
pub size: u64,
pub encoded_attributes: String,
pub msd: u8,
pub download_url: Option<Url>,
pub unknown: HashMap<String, Value>,
}
Expand description
GetAttributes command response
Fields§
§size: u64
The file size
encoded_attributes: String
Encoded attributes
msd: u8
§download_url: Option<Url>
The download url
unknown: HashMap<String, Value>
Unknown attributes
Implementations§
Source§impl GetAttributes
impl GetAttributes
Sourcepub fn decode_attributes(
&self,
key: u128,
) -> Result<FileAttributes, DecodeAttributesError>
pub fn decode_attributes( &self, key: u128, ) -> Result<FileAttributes, DecodeAttributesError>
Decode the encoded attributes
Trait Implementations§
Source§impl Debug for GetAttributes
impl Debug for GetAttributes
Source§impl<'de> Deserialize<'de> for GetAttributes
impl<'de> Deserialize<'de> for GetAttributes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GetAttributes
impl RefUnwindSafe for GetAttributes
impl Send for GetAttributes
impl Sync for GetAttributes
impl Unpin for GetAttributes
impl UnwindSafe for GetAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more