pub struct User { /* private fields */ }Implementations§
Source§impl User
impl User
pub fn new( base_url: String, app_token: String, user_identifier: String, data: UserDataInt, mfa: bool, ) -> Result<Self, SentcError>
pub fn get_user_id(&self) -> &str
pub fn get_identifier(&self) -> &str
pub fn get_device_id(&self) -> &str
pub fn get_jwt_sync(&self) -> &str
pub fn get_refresh_token(&self) -> &str
pub fn set_jwt(&mut self, jwt: String)
pub fn set_refresh_token(&mut self, refresh_token: String)
pub fn prepare_register_device_keys( &self, sever_output: &str, ) -> Result<String, SentcError>
pub fn get_mfa(&self) -> bool
pub fn get_private_device_key(&self) -> &SecretKey
pub fn get_public_device_key(&self) -> &PublicKey
pub fn get_verify_device_key(&self) -> &VerifyKey
pub fn get_sign_device_key(&self) -> &SignKey
pub fn get_exported_verify_device_key(&self) -> &UserVerifyKeyData
pub fn get_exported_public_device_key(&self) -> &UserPublicKeyData
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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