pub struct Config {
pub token: String,
pub user_id: String,
pub relay_url: String,
pub hostname: String,
pub active_device_id: String,
pub credential_version: u64,
pub encryption_key: String,
pub device_private_key: String,
pub email: String,
pub identity_provider: String,
pub display_name: String,
pub key_pending: bool,
}Fields§
§token: String§user_id: String§relay_url: String§hostname: String§active_device_id: String§credential_version: u64§encryption_key: String§device_private_key: String§email: String§identity_provider: String§display_name: String§key_pending: boolTrue when this device registered its X25519 public key with the relay
but has not yet received the user’s master AES key via the
key_exchange_requested ECDH flow. While true, encryption_key is
empty and every push/pull must first attempt an auto-retry of
retry_key_bundle + poll_key_bundle.
Set by auth_session::install_credentials on a fresh sign-in, cleared
by auth::poll_key_bundle the moment a master-key bundle arrives and
decrypts.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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