pub struct Attachment {Show 17 fields
pub rowid: i64,
pub guid: String,
pub created_date: Option<i64>,
pub start_date: Option<i64>,
pub filename: Option<String>,
pub uti: Option<String>,
pub mime_type: Option<String>,
pub transfer_state: i64,
pub is_outgoing: bool,
pub user_info: Option<Vec<u8>>,
pub transfer_name: Option<String>,
pub total_bytes: i64,
pub is_sticker: Option<bool>,
pub sticker_user_info: Option<Vec<u8>>,
pub attribution_info: Option<Vec<u8>>,
pub hide_attachment: Option<bool>,
pub original_guid: Option<String>,
}Expand description
An attachment row from the attachment table.
Fields§
§rowid: i64§guid: String§created_date: Option<i64>§start_date: Option<i64>§filename: Option<String>The filename column in the DB (the file path).
uti: Option<String>§mime_type: Option<String>§transfer_state: i64§is_outgoing: bool§user_info: Option<Vec<u8>>§transfer_name: Option<String>§total_bytes: i64§is_sticker: Option<bool>§sticker_user_info: Option<Vec<u8>>§attribution_info: Option<Vec<u8>>§hide_attachment: Option<bool>§original_guid: Option<String>Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
Returns a duplicate 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 Default for Attachment
impl Default for Attachment
Source§fn default() -> Attachment
fn default() -> Attachment
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more