Skip to main content

Message

Struct Message 

Source
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§share_status: i64§share_direction: 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§

Source§

impl Clone for Message

Source§

fn clone(&self) -> Message

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Message

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Message

Source§

fn default() -> Message

Returns the “default value” for a type. Read more
Source§

impl Serialize for Message

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more