pub struct PasswordManagerClient(pub(crate) PasswordManagerClient);Expand description
The main entry point for the Bitwarden SDK in WebAssembly environments
Tuple Fields§
§0: PasswordManagerClientImplementations§
Source§impl PasswordManagerClient
impl PasswordManagerClient
Sourcepub fn new(
token_provider: JsTokenProvider,
settings: Option<ClientSettings>,
managed_settings: &ManagedSettingsClient,
) -> Self
pub fn new( token_provider: JsTokenProvider, settings: Option<ClientSettings>, managed_settings: &ManagedSettingsClient, ) -> Self
Initialize a new instance of the SDK client
managed_settings is the host-owned handle onto the operating system’s Unified Endpoint
Management profile. The client shares its profile, so profiles pushed after construction
are visible here. Pass a fresh ManagedSettingsClient where the host has no UEM source.
Sourcepub fn managed_settings(&self) -> ManagedSettingsClient
pub fn managed_settings(&self) -> ManagedSettingsClient
Administrator-enforced settings operations.
Sourcepub async fn http_get(&self, url: String) -> Result<String, String>
pub async fn http_get(&self, url: String) -> Result<String, String>
Test method, calls http endpoint
Sourcepub fn commercial(&self) -> CommercialPasswordManagerClient
pub fn commercial(&self) -> CommercialPasswordManagerClient
Bitwarden licensed operations.
Sourcepub fn crypto_sync_handler(&self) -> CryptoSyncHandlerClient
pub fn crypto_sync_handler(&self) -> CryptoSyncHandlerClient
Key management operations that run on every sync.
Sourcepub fn km_state_bridge(&self) -> StateBridgeClient
pub fn km_state_bridge(&self) -> StateBridgeClient
Key management state bridge operations.
Sourcepub fn user_crypto_management(&self) -> UserCryptoManagementClient
pub fn user_crypto_management(&self) -> UserCryptoManagementClient
User crypto management related operations.
Sourcepub fn collections(&self) -> CollectionsClient
pub fn collections(&self) -> CollectionsClient
Collection related operations.
This is registered directly on the top-level client in addition to being nested under
vault. Once consumers have migrated to this accessor, the nested one will
be removed.
Sourcepub fn platform(&self) -> PlatformClient
pub fn platform(&self) -> PlatformClient
Constructs a specific client for platform-specific functionality
Sourcepub fn generator(&self) -> GeneratorClient
pub fn generator(&self) -> GeneratorClient
Constructs a specific client for generating passwords and passphrases
Sourcepub fn send_sync_handler(&self) -> SendSyncHandlerClient
pub fn send_sync_handler(&self) -> SendSyncHandlerClient
Send sync handler operations.
Sourcepub fn invite_link(&self) -> InviteLinkClient
pub fn invite_link(&self) -> InviteLinkClient
Organization invite link operations.
Sourcepub fn organization_users_management(&self) -> OrganizationUsersManagementClient
pub fn organization_users_management(&self) -> OrganizationUsersManagementClient
Organization member administration operations.
Sourcepub fn crypto_cipher_suite(&self) -> CryptoCipherSuiteClient
pub fn crypto_cipher_suite(&self) -> CryptoCipherSuiteClient
Crypto cipher suite operations.
Trait Implementations§
Source§impl From<PasswordManagerClient> for JsValue
impl From<PasswordManagerClient> for JsValue
Source§fn from(value: PasswordManagerClient) -> Self
fn from(value: PasswordManagerClient) -> Self
Source§impl FromWasmAbi for PasswordManagerClient
impl FromWasmAbi for PasswordManagerClient
Source§impl IntoWasmAbi for PasswordManagerClient
impl IntoWasmAbi for PasswordManagerClient
Source§impl RefFromWasmAbi for PasswordManagerClient
impl RefFromWasmAbi for PasswordManagerClient
Source§type Anchor = RcRef<PasswordManagerClient>
type Anchor = RcRef<PasswordManagerClient>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.impl SupportsConstructor for PasswordManagerClient
impl SupportsInstanceProperty for PasswordManagerClient
impl SupportsStaticProperty for PasswordManagerClient
Source§impl VectorFromWasmAbi for PasswordManagerClient
impl VectorFromWasmAbi for PasswordManagerClient
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PasswordManagerClient]>
Source§impl VectorIntoWasmAbi for PasswordManagerClient
impl VectorIntoWasmAbi for PasswordManagerClient
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PasswordManagerClient]>) -> Self::Abi
Source§impl WasmDescribe for PasswordManagerClient
impl WasmDescribe for PasswordManagerClient
Auto Trait Implementations§
impl !RefUnwindSafe for PasswordManagerClient
impl !UnwindSafe for PasswordManagerClient
impl Freeze for PasswordManagerClient
impl Send for PasswordManagerClient
impl Sync for PasswordManagerClient
impl Unpin for PasswordManagerClient
impl UnsafeUnpin for PasswordManagerClient
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> 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> ⓘ
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> ⓘ
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> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.