Struct rive_models::attachment::Attachment
source · pub struct Attachment {
pub id: String,
pub tag: String,
pub filename: String,
pub metadata: Metadata,
pub content_type: String,
pub size: isize,
pub deleted: Option<bool>,
pub reported: Option<bool>,
pub message_id: Option<String>,
pub user_id: Option<String>,
pub server_id: Option<String>,
pub object_id: Option<String>,
}Expand description
Representation of an attachment on Revolt
Fields§
§id: StringUnique Id
tag: StringTag/bucket this attachment was uploaded to
filename: StringOriginal filename
metadata: MetadataParsed metadata of this attachment
content_type: StringRaw content type of this attachment
size: isizeSize of this attachment (in bytes)
deleted: Option<bool>Whether this attachment was deleted
reported: Option<bool>Whether this attachment was reported
message_id: Option<String>§user_id: Option<String>§server_id: Option<String>§object_id: Option<String>ID of the object this attachment is associated with
Trait Implementations§
source§impl Clone for Attachment
impl Clone for Attachment
source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Attachment
impl Debug for Attachment
source§impl<'de> Deserialize<'de> for Attachment
impl<'de> Deserialize<'de> for Attachment
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