pub struct Handle {
    pub rowid: i32,
    pub id: String,
    pub person_centric_id: Option<String>,
}
Expand description

Represents a single row in the handle table.

Fields§

§rowid: i32§id: String§person_centric_id: Option<String>

Trait Implementations§

Generate a HashMap for looking up contacts by their IDs, collapsing duplicate contacts to the same ID String regardless of service

Example:
use imessage_database::util::dirs::default_db_path;
use imessage_database::tables::table::{Cacheable, get_connection};
use imessage_database::tables::handle::Handle;

let db_path = default_db_path();
let conn = get_connection(&db_path);
let chatrooms = Handle::cache(&conn);
Formats the value using the given formatter. Read more

Given the initial set of duplciated handles, deduplciate them

This returns a new hashmap that maps the real handle ID to a new deduplicated unique handle ID that represents a single handle for all of the deduplicate handles

Emit diagnotsic data for the Handles table

Get the number of handles that are duplicated The person_centric_id is used to map handles that represent the same contact across ids (numbers, emails, etc) and across services (iMessage, Jabber, iChat, SMS, etc)

Example:
use imessage_database::util::dirs::default_db_path;
use imessage_database::tables::table::{Diagnostic, get_connection};
use imessage_database::tables::handle::Handle;

let db_path = default_db_path();
let conn = get_connection(&db_path);
Handle::run_diagnostic(&conn);
Serializes a single row of data to an instance of the struct that implements this Trait
Gets a statment we can exectue 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.