[][src]Struct firefly_iii::models::attachment::Attachment

pub struct Attachment {
    pub created_at: Option<String>,
    pub updated_at: Option<String>,
    pub filename: String,
    pub attachable_type: Option<AttachableType>,
    pub model: Model,
    pub attachable_id: Option<i32>,
    pub model_id: i32,
    pub md5: Option<String>,
    pub download_uri: Option<String>,
    pub upload_uri: Option<String>,
    pub title: Option<String>,
    pub notes: Option<String>,
    pub mime: Option<String>,
    pub size: Option<i32>,
}

Fields

created_at: Option<String>updated_at: Option<String>filename: Stringattachable_type: Option<AttachableType>

The object class to which the attachment must be linked.

model: Model

The object class to which the attachment must be linked.

attachable_id: Option<i32>

ID of the model this attachment is linked to.

model_id: i32

ID of the model this attachment is linked to.

md5: Option<String>

MD5 hash of the file for basic duplicate detection.

download_uri: Option<String>upload_uri: Option<String>title: Option<String>notes: Option<String>mime: Option<String>size: Option<i32>

Methods

impl Attachment[src]

pub fn new(filename: String, model: Model, model_id: i32) -> Attachment[src]

Trait Implementations

impl Debug for Attachment[src]

impl<'de> Deserialize<'de> for Attachment[src]

impl PartialEq<Attachment> for Attachment[src]

impl Serialize for Attachment[src]

impl StructuralPartialEq for Attachment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.