Struct ClientCrypto
pub struct ClientCrypto<'a> {
pub(crate) client: &'a Client,
}
Fields§
§client: &'a Client
Implementations§
§impl<'a> ClientCrypto<'a>
impl<'a> ClientCrypto<'a>
pub async fn initialize_user_crypto( &self, req: InitUserCryptoRequest, ) -> Result<(), EncryptionSettingsError>
pub async fn initialize_org_crypto( &self, req: InitOrgCryptoRequest, ) -> Result<(), EncryptionSettingsError>
pub async fn get_user_encryption_key(&self) -> Result<String, Error>
pub fn update_password( &self, new_password: String, ) -> Result<UpdatePasswordResponse, Error>
pub fn derive_pin_key(&self, pin: String) -> Result<DerivePinKeyResponse, Error>
pub fn derive_pin_user_key( &self, encrypted_pin: EncString, ) -> Result<EncString, Error>
pub fn enroll_admin_password_reset( &self, public_key: String, ) -> Result<AsymmetricEncString, Error>
pub fn derive_key_connector(
&self,
request: DeriveKeyConnectorRequest,
) -> Result<String, Error>
pub fn derive_key_connector( &self, request: DeriveKeyConnectorRequest, ) -> Result<String, Error>
Derive the master key for migrating to the key connector
Auto Trait Implementations§
impl<'a> Freeze for ClientCrypto<'a>
impl<'a> !RefUnwindSafe for ClientCrypto<'a>
impl<'a> Send for ClientCrypto<'a>
impl<'a> Sync for ClientCrypto<'a>
impl<'a> Unpin for ClientCrypto<'a>
impl<'a> !UnwindSafe for ClientCrypto<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more