pub struct Message {Show 74 fields
pub rowid: i64,
pub guid: String,
pub text: Option<String>,
pub replace: i64,
pub service_center: Option<String>,
pub handle_id: i64,
pub subject: Option<String>,
pub country: Option<String>,
pub attributed_body: Option<Vec<u8>>,
pub version: i64,
pub type: i64,
pub service: Option<String>,
pub account: Option<String>,
pub account_guid: Option<String>,
pub error: i64,
pub date: Option<i64>,
pub date_read: Option<i64>,
pub date_delivered: Option<i64>,
pub is_delivered: bool,
pub is_finished: bool,
pub is_emote: bool,
pub is_from_me: bool,
pub is_empty: bool,
pub is_delayed: bool,
pub is_auto_reply: bool,
pub is_prepared: bool,
pub is_read: bool,
pub is_system_message: bool,
pub is_sent: bool,
pub has_dd_results: bool,
pub is_service_message: bool,
pub is_forward: bool,
pub was_downgraded: bool,
pub is_archive: bool,
pub cache_has_attachments: bool,
pub cache_roomnames: Option<String>,
pub was_data_detected: bool,
pub was_deduplicated: bool,
pub is_audio_message: bool,
pub is_played: bool,
pub date_played: Option<i64>,
pub item_type: i64,
pub other_handle: i64,
pub group_title: Option<String>,
pub group_action_type: i64,
pub share_status: i64,
pub share_direction: i64,
pub is_expirable: bool,
pub expire_state: bool,
pub message_action_type: i64,
pub message_source: i64,
pub associated_message_guid: Option<String>,
pub associated_message_type: Option<String>,
pub associated_message_emoji: Option<String>,
pub balloon_bundle_id: Option<String>,
pub payload_data: Option<Vec<u8>>,
pub expressive_send_style_id: Option<String>,
pub associated_message_range_location: Option<i64>,
pub associated_message_range_length: Option<i64>,
pub time_expressive_send_played: Option<i64>,
pub message_summary_info: Option<Vec<u8>>,
pub reply_to_guid: Option<String>,
pub is_corrupt: Option<bool>,
pub is_spam: Option<bool>,
pub thread_originator_guid: Option<String>,
pub thread_originator_part: Option<String>,
pub date_retracted: Option<i64>,
pub date_edited: Option<i64>,
pub part_count: Option<i64>,
pub was_delivered_quietly: Option<bool>,
pub did_notify_recipient: Option<bool>,
pub handle: Option<Handle>,
pub chats: Vec<Chat>,
pub attachments: Vec<Attachment>,
}Expand description
A message row from the message table.
Fields§
§rowid: i64§guid: String§text: Option<String>§replace: i64§service_center: Option<String>§handle_id: i64§subject: Option<String>§country: Option<String>§attributed_body: Option<Vec<u8>>§version: i64§type: i64§service: Option<String>§account: Option<String>§account_guid: Option<String>§error: i64§date: Option<i64>§date_read: Option<i64>§date_delivered: Option<i64>§is_delivered: bool§is_finished: bool§is_emote: bool§is_from_me: bool§is_empty: bool§is_delayed: bool§is_auto_reply: bool§is_prepared: bool§is_read: bool§is_system_message: bool§is_sent: bool§has_dd_results: bool§is_service_message: bool§is_forward: bool§was_downgraded: bool§is_archive: bool§cache_has_attachments: bool§cache_roomnames: Option<String>§was_data_detected: bool§was_deduplicated: bool§is_audio_message: bool§is_played: bool§date_played: Option<i64>§item_type: i64§other_handle: i64§group_title: Option<String>§group_action_type: i64§is_expirable: bool§expire_state: bool§message_action_type: i64§message_source: i64§associated_message_guid: Option<String>§associated_message_type: Option<String>§associated_message_emoji: Option<String>§balloon_bundle_id: Option<String>§payload_data: Option<Vec<u8>>§expressive_send_style_id: Option<String>§associated_message_range_location: Option<i64>§associated_message_range_length: Option<i64>§time_expressive_send_played: Option<i64>§message_summary_info: Option<Vec<u8>>§reply_to_guid: Option<String>§is_corrupt: Option<bool>§is_spam: Option<bool>§thread_originator_guid: Option<String>§thread_originator_part: Option<String>§date_retracted: Option<i64>§date_edited: Option<i64>§part_count: Option<i64>§was_delivered_quietly: Option<bool>§did_notify_recipient: Option<bool>§handle: Option<Handle>§chats: Vec<Chat>§attachments: Vec<Attachment>Trait Implementations§
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
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