Struct dasi::model::Attachment [] [src]

pub struct Attachment {
    pub id: String,
    pub filename: String,
    pub url: String,
    pub proxy_url: String,
    pub size: u64,
    pub dimensions: Option<(u64, u64)>,
}

File upload attached to a message

Fields

id
filename

Short filename for the attachment

url

Shorter URL with message and attachment id

proxy_url

Longer URL with large hash

size

Size of the file in bytes

dimensions

Dimensions if the file is an image

Methods

impl Attachment

fn decode(value: Value) -> Result<Attachment>

Trait Implementations

Derived Implementations

impl Clone for Attachment

fn clone(&self) -> Attachment

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for Attachment

fn fmt(&self, __arg_0: &mut Formatter) -> Result