Modules§
Structs§
- Client
Certificate - A client certificate chain and the signer for its private key.
- Configuration
- Configuration for an API client.
- Response
Content - Response content from a failed API call.
Enums§
- ApiError
- Errors that can occur during API operations.
- Auth
Required - 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.
- Client
Cert Signer Error - Error returned by a
ClientCertSigner. - Client
Certificate Error - Why
ClientCertificate::validaterejected a certificate. - Content
Type - Content types supported by the API client.
- TlsSig
Scheme - A TLS signature scheme a client certificate key can sign with.
Traits§
- Client
Cert Signer - 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 fromnew_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_builderthat also presentsclient_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
ApiErrorinstead.