Skip to main content

Crate bitwarden_api_api

Crate bitwarden_api_api 

Source

Modules§

apis
models

Structs§

ClientCertificate
A client certificate chain and the signer for its private key.
Configuration
Configuration for an API client.
ResponseContent
Response content from a failed API call.

Enums§

ApiError
Errors that can occur during API operations.
AuthRequired
Marker struct used for endpoints that require authentication. It will be included in the request’s extensions to signal to the middleware that authentication is required.
ClientCertSignerError
Error returned by a ClientCertSigner.
ClientCertificateError
Why ClientCertificate::validate rejected a certificate.
ContentType
Content types supported by the API client.
TlsSigScheme
A TLS signature scheme a client certificate key can sign with.

Traits§

ClientCertSigner
Signs TLS handshakes with the private key of a client certificate, which never leaves the host application.

Functions§

new_http_client
Returns a [reqwest::Client] built from new_http_client_builder.
new_http_client_builder
Returns a [reqwest::ClientBuilder] with the SDK’s TLS, connect timeout, and keep-alive defaults. On WASM the builder is returned unmodified.
new_http_client_builder_with_client_certificate
Returns a builder like new_http_client_builder that also presents client_certificate. Only use it for clients that talk to Bitwarden servers.
parse_deep_object
Parses a deep object (nested JSON) into flat query parameters.
process_with_empty_response
Sends and processes a request expecting an empty response, returning Ok(()) when successful.
process_with_json_response
Sends and processes a request expecting a JSON response, deserializing it into the type T.
urlencode
URL-encodes a string for use in query parameters.

Type Aliases§

Error
Error alias for backwards compatibility, prefer ApiError instead.