pub struct FileMeta {
pub id: String,
pub unique_id: String,
pub size: u32,
}Expand description
Metadata of a File.
Fields§
§id: StringIdentifier for this file.
unique_id: StringUnique identifier for this file, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.
size: u32File size in bytes.
Trait Implementations§
source§impl<'de> Deserialize<'de> for FileMeta
impl<'de> Deserialize<'de> for FileMeta
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
source§impl PartialEq<FileMeta> for FileMeta
impl PartialEq<FileMeta> for FileMeta
impl Eq for FileMeta
impl StructuralEq for FileMeta
impl StructuralPartialEq for FileMeta
Auto Trait Implementations§
impl RefUnwindSafe for FileMeta
impl Send for FileMeta
impl Sync for FileMeta
impl Unpin for FileMeta
impl UnwindSafe for FileMeta
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