pub struct AccountConfig {
pub directory: SocketAddr,
pub relay: SocketAddr,
pub accounts: SocketAddr,
pub provisioning: SocketAddr,
pub api_key: String,
pub identifier: String,
pub password: String,
pub device: u8,
}Expand description
Where to reach a server’s account endpoints, plus the credentials to sign
in with. Used by the account flow (Client::sign_in) — sign in, then
provision this device under the account’s handle — in contrast to
Config, which registers a device directly under a raw handle (the
pre-account path).
Fields§
§directory: SocketAddrThe directory service address (peer lookups).
relay: SocketAddrThe relay server address.
accounts: SocketAddrThe account service address (sign in).
provisioning: SocketAddrThe provisioning service address (bind this device).
api_key: StringThe tenant API key that scopes the account operations.
identifier: StringThe user’s username (their per-tenant handle).
password: StringThe user’s password.
device: u8This client’s device number.
Trait Implementations§
Source§impl Clone for AccountConfig
impl Clone for AccountConfig
Source§fn clone(&self) -> AccountConfig
fn clone(&self) -> AccountConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AccountConfig
impl RefUnwindSafe for AccountConfig
impl Send for AccountConfig
impl Sync for AccountConfig
impl Unpin for AccountConfig
impl UnsafeUnpin for AccountConfig
impl UnwindSafe for AccountConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more