pub struct ChatToHandle { /* private fields */ }
Expand description

Represents a single row in the chat_handle_join table.

Trait Implementations§

Generate a hashmap containing each chatroom’s ID pointing to a HashSet of participant handle IDs

Example:
use imessage_database::util::dirs::default_db_path;
use imessage_database::tables::table::{Cacheable, get_connection};
use imessage_database::tables::chat_handle::ChatToHandle;

let db_path = default_db_path();
let conn = get_connection(&db_path).unwrap();
let chatrooms = ChatToHandle::cache(&conn);

Given the initial set of duplicated chats, deduplicate them based on the participants

This returns a new hashmap that maps the real chat ID to a new deduplicated unique chat ID that represents a single chat for all of the same participants, even if they have multiple handles

Emit diagnostic data for the Chat to Handle join table

Get the number of chats referenced in the messages table that do not exist in this join table:

Example:
use imessage_database::util::dirs::default_db_path;
use imessage_database::tables::table::{Diagnostic, get_connection};
use imessage_database::tables::chat_handle::ChatToHandle;

let db_path = default_db_path();
let conn = get_connection(&db_path).unwrap();
ChatToHandle::run_diagnostic(&conn);
Serializes a single row of data to an instance of the struct that implements this Trait
Gets a statement we can execute to iterate over the data in the table
Extract valid row data while handling both types of query errors

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

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.