pub enum Command {
PasswordLogin(PasswordLoginRequest),
ApiKeyLogin(ApiKeyLoginRequest),
LoginAccessToken(AccessTokenLoginRequest),
GetUserApiKey(SecretVerificationRequest),
Fingerprint(FingerprintRequest),
Sync(SyncRequest),
Secrets(SecretsCommand),
Projects(ProjectsCommand),
Generators(GeneratorsCommand),
}
Variants§
PasswordLogin(PasswordLoginRequest)
Login with username and password
This command is for initiating an authentication handshake with Bitwarden. Authorization may fail due to requiring 2fa or captcha challenge completion despite accurate credentials.
This command is not capable of handling authentication requiring 2fa or captcha.
Returns: PasswordLoginResponse
ApiKeyLogin(ApiKeyLoginRequest)
Login with API Key
This command is for initiating an authentication handshake with Bitwarden.
Returns: ApiKeyLoginResponse
LoginAccessToken(AccessTokenLoginRequest)
Login with Secrets Manager Access Token
This command is for initiating an authentication handshake with Bitwarden.
Returns: ApiKeyLoginResponse
GetUserApiKey(SecretVerificationRequest)
Requires Authentication Get the API key of the currently authenticated user
Returns: UserApiKeyResponse
Fingerprint(FingerprintRequest)
Get the user’s passphrase
Returns: String
Sync(SyncRequest)
Requires Authentication Retrieve all user data, ciphers and organizations the user is a part of
Returns: SyncResponse
Secrets(SecretsCommand)
Projects(ProjectsCommand)
Generators(GeneratorsCommand)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl JsonSchema for Command
impl JsonSchema for Command
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
§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>
§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>
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