Expand description
§bitwarden-api-base
Base types and utilities for Bitwarden API clients.
§Overview
This crate provides common functionality shared across all Bitwarden API client crates:
Configuration- HTTP client configuration with authentication optionsError- Error type for API operationsResponseContent- Container for error response dataurlencode- URL encoding utilityparse_deep_object- Deep object query parameter serializationContentType- Content type parsing
§Usage
This is an internal crate and should not be used directly. It is re-exported by the API client crates:
bitwarden-api-apibitwarden-api-identity
Modules§
- configuration 🔒
- Configuration types for API clients.
- error 🔒
- Error types for API operations.
- request 🔒
- util 🔒
- Utility functions for API operations.
Structs§
- Configuration
- Configuration for an API client.
- Response
Content - Response content from a failed API call.
Enums§
- 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.
- Content
Type - Content types supported by the API client.
- Error
- Errors that can occur during API operations.
Functions§
- 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.