pub struct AccountState {Show 14 fields
pub schema: u32,
pub device: DeviceProfile,
pub uin: u32,
pub own_username: String,
pub cookie: Vec<u8>,
pub session_key: Vec<u8>,
pub request_key: Vec<u8>,
pub response_key: Vec<u8>,
pub auto_auth_key: Vec<u8>,
pub key_info: Vec<u8>,
pub database_password: Vec<u8>,
pub auth_snapshot: AuthSnapshot,
pub long_host: String,
pub short_host: String,
}Expand description
Accepted credentials. Serialize only into the service’s encrypted state vault.
Fields§
§schema: u32§device: DeviceProfile§uin: u32§own_username: String§session_key: Vec<u8>§request_key: Vec<u8>§response_key: Vec<u8>§auto_auth_key: Vec<u8>§key_info: Vec<u8>§database_password: Vec<u8>Native AuthSect field 9 SKBuffer. This is the official profile password, distinct from transport keys, and is never part of an HTTP response.
auth_snapshot: AuthSnapshot§long_host: String§short_host: StringImplementations§
Source§impl AccountState
impl AccountState
Sourcepub fn from_baseline_json(input: &[u8]) -> Result<Self>
pub fn from_baseline_json(input: &[u8]) -> Result<Self>
Import an operator-selected private baseline checkpoint. This only converts explicit standalone credentials; it never searches or reads official files. Return diagnostics contain field names, never supplied credential values.
Trait Implementations§
Source§impl Clone for AccountState
impl Clone for AccountState
Source§impl Debug for AccountState
impl Debug for AccountState
Source§impl<'de> Deserialize<'de> for AccountState
impl<'de> Deserialize<'de> for AccountState
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
Source§impl Drop for AccountState
impl Drop for AccountState
Auto Trait Implementations§
impl Freeze for AccountState
impl RefUnwindSafe for AccountState
impl Send for AccountState
impl Sync for AccountState
impl Unpin for AccountState
impl UnsafeUnpin for AccountState
impl UnwindSafe for AccountState
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