pub struct Message {
pub from_fingerprint: Option<Uuid>,
pub to_fingerprint: Option<Uuid>,
pub application: String,
pub extension: String,
pub mime: String,
pub send_date: i64,
pub receive_date: i64,
pub is_file: bool,
pub id: Option<Uuid>,
pub body: Vec<u8>,
pub file_name: String,
}Fields§
§from_fingerprint: Option<Uuid>§to_fingerprint: Option<Uuid>§application: String§extension: String§mime: String§send_date: i64§receive_date: i64§is_file: bool§id: Option<Uuid>§body: Vec<u8>§file_name: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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 From<Message> for ApiMessage
impl From<Message> for ApiMessage
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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