pub struct EditedMessage<'a> {
    pub dates: Vec<i64>,
    pub texts: Vec<String>,
    pub guids: Vec<Option<&'a str>>,
}
Expand description

iMessage permits editing sent messages up to five times within 15 minutes of sending the first message and unsending sent messages within 2 minutes.

Edited or unsent messages are stored with a NULL text field. Edited messages include message_summary_info that contains an array of streamtyped data where each array item contains the edited message. The order in the array represents the order the messages were edited in, i.e. item 0 was the original and the last item is the current message.

For each dictionary item in this array, The d key represents the time the message was edited and the t key represents the message’s attributedBody text in the streamtyped format.

There is no data in the array if the message was unsent.

Apple describes editing and unsending messages here.

Fields§

§dates: Vec<i64>

The dates the messages were edited

§texts: Vec<String>

The content of the edited messages in streamtyped format

§guids: Vec<Option<&'a str>>

A GUID reference to another message

Implementations§

true if the message was deleted, false if it was edited

Gets a tuple for the message at the provided position

Gets the number of items in the edit history

Trait Implementations§

Creates the object from a HashMap of item attributes
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.