#[repr(C)]pub struct XmtpFfiClientOptions {Show 16 fields
pub host: *const c_char,
pub gateway_host: *const c_char,
pub is_secure: i32,
pub db_path: *const c_char,
pub encryption_key: *const u8,
pub inbox_id: *const c_char,
pub account_identifier: *const c_char,
pub identifier_kind: i32,
pub nonce: u64,
pub auth_handle: *const XmtpFfiAuthHandle,
pub app_version: *const c_char,
pub device_sync_worker_mode: i32,
pub allow_offline: i32,
pub client_mode: i32,
pub max_db_pool_size: u32,
pub min_db_pool_size: u32,
}Expand description
Options for creating a client. All string fields are borrowed (not freed by this library).
Fields§
§host: *const c_chargRPC v3 host URL (required).
gateway_host: *const c_charGateway host URL for decentralized API (nullable, enables d14n if set).
is_secure: i32Whether the connection is TLS-secured.
db_path: *const c_charPath to the SQLite database file. Null = ephemeral.
encryption_key: *const u832-byte encryption key for the database. Null = unencrypted.
inbox_id: *const c_charInbox ID (required).
account_identifier: *const c_charAccount identifier string (required).
identifier_kind: i32Identifier kind: 0 = Ethereum, 1 = Passkey.
nonce: u64Nonce for identity strategy (default 1 if 0).
auth_handle: *const XmtpFfiAuthHandleOptional auth handle for gateway authentication. Null = no auth.
app_version: *const c_charApplication version string (nullable).
device_sync_worker_mode: i32Device sync worker mode: 0 = Enabled (default), 1 = Disabled.
allow_offline: i32Allow offline mode. 0 = no (default), 1 = yes.
client_mode: i32Client mode: 0 = Default, 1 = Notification (read-only).
max_db_pool_size: u32Maximum database connection pool size. 0 = use default.
min_db_pool_size: u32Minimum database connection pool size. 0 = use default.
Trait Implementations§
Source§impl Clone for XmtpFfiClientOptions
impl Clone for XmtpFfiClientOptions
Source§fn clone(&self) -> XmtpFfiClientOptions
fn clone(&self) -> XmtpFfiClientOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more