Struct InternalClient
pub struct InternalClient {
pub(crate) tokens: RwLock<Tokens>,
pub(crate) login_method: RwLock<Option<Arc<LoginMethod>>>,
pub(super) flags: RwLock<Flags>,
pub(crate) external_client: Client,
pub(super) encryption_settings: RwLock<Option<Arc<EncryptionSettings>>>,
/* private fields */
}
Fields§
§tokens: RwLock<Tokens>
§login_method: RwLock<Option<Arc<LoginMethod>>>
§flags: RwLock<Flags>
§external_client: Client
§encryption_settings: RwLock<Option<Arc<EncryptionSettings>>>
Implementations§
§impl InternalClient
impl InternalClient
pub fn load_flags(&self, flags: HashMap<String, bool>)
pub fn get_flags(&self) -> Flags
pub fn get_access_token_organization(&self) -> Option<Uuid>
pub fn is_authed(&self) -> bool
pub fn get_kdf(&self) -> Result<Kdf, Error>
pub async fn get_api_configurations(&self) -> Arc<ApiConfigurations>
pub fn get_http_client(&self) -> &Client
pub fn get_encryption_settings( &self, ) -> Result<Arc<EncryptionSettings>, VaultLocked>
pub fn initialize_org_crypto( &self, org_keys: Vec<(Uuid, AsymmetricEncString)>, ) -> Result<Arc<EncryptionSettings>, EncryptionSettingsError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for InternalClient
impl !RefUnwindSafe for InternalClient
impl Send for InternalClient
impl Sync for InternalClient
impl Unpin for InternalClient
impl !UnwindSafe for InternalClient
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