pub struct AuthClient {
pub id: String,
pub decrypted_keys: Option<KeysDecrypted>,
pub session: Option<SessionId>,
/* private fields */
}Fields§
§id: String§decrypted_keys: Option<KeysDecrypted>§session: Option<SessionId>Implementations§
Source§impl AuthClient
impl AuthClient
pub fn new_from_creds(id: &str, password: &str) -> Self
pub fn compute_derived_key(&mut self, salt: &[u8])
pub fn autentication_key(&self) -> &Option<Vec<u8>>
pub fn decrypt_keys( &mut self, encrypted_keys: KeysPayload, session_id_enc: SessionIdEncrypted, ) -> Result<(), ClientError>
Trait Implementations§
Source§impl Debug for AuthClient
impl Debug for AuthClient
Source§impl Default for AuthClient
impl Default for AuthClient
Source§fn default() -> AuthClient
fn default() -> AuthClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuthClient
impl RefUnwindSafe for AuthClient
impl Send for AuthClient
impl Sync for AuthClient
impl Unpin for AuthClient
impl UnsafeUnpin for AuthClient
impl UnwindSafe for AuthClient
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