Expand description
Core types and traits for the Rust Azure SDK.
This crate is part of the unofficial Azure SDK effort in Rust. For more information on the project, and an overview of other crates, please refer to our GitHub repository.
Re-exports§
Modules§
- auth
- Azure authentication and authorization.
- content_
type - Constants related to the Content-Type header
- date
- Azure date and time parsing and formatting
- error
- headers
- Azure HTTP headers.
- parsing
- Parser helper utilities.
- prelude
- The Azure Core prelude.
- query_
param - Constants related to the Content-Type header
- request_
options - resource_
manager_ endpoint - Endpoints for Azure Resource Manager in different Azure clouds
- sleep
- util
- An assortment of helper utilities.
Macros§
- create_
enum - The following macro invocation:
- ensure
- Return early with an error if a condition is not satisfied.
- ensure_
eq - Return early with an error if two expressions are not equal to each other.
- ensure_
ne - Return early with an error if two expressions are equal to each other.
- format_
err - A convenient way to create a new error using the normal formatting infrastructure
- future
- Declare a
Future
with the given name - operation
- Helper for constructing operations
- request_
header - The following macro invocation:
- request_
option - The following macro invocation:
- request_
query - The following macro invocation:
- setters
- Creates setter methods
Structs§
- Bytes
Stream - Convenience struct that maps a
bytes::Bytes
buffer into a stream. - Client
Options - Client options allow customization of policies, retry options, and more.
- Collected
Response - A response with the body collected as bytes
- Context
- Pipeline execution context.
- Custom
Headers - Custom
Headers Policy - Etag
- Exponential
Retry Policy - Retry policy with exponential back-off.
- Fixed
Retry Policy - Retry policy with fixed back-off.
- NoRetry
Policy - Retry policy that does not retry.
- Pageable
- A pageable stream that yields items of type
T
- Pipeline
- Execution pipeline.
- Request
- A pipeline request.
- Response
- An HTTP Response.
- Response
Body - A response body stream
- Retry
Options - Specify how retries should behave.
- Telemetry
Options - Telemetry options.
- Telemetry
Policy - Timeout
Policy - Transport
Options - Transport options.
- Transport
Policy - Url
- A parsed URL record.
Enums§
- Body
- An HTTP Body.
- Lease
Action - Lease
Duration - Lease
State - Lease
Status - Method
- HTTP request methods.
- Retry
Mode - The algorithm to apply when calculating the delay between retry attempts.
- Status
Code - HTTP response status codes.
Constants§
- EMPTY_
BODY - An empty HTTP body.
Traits§
- Append
ToUrl Query - Add a new query pair into the target URL’s query string.
- Continuable
- A type that can yield an optional continuation token
- Header
- View a type as an HTTP header.
- Http
Client - An HTTP client which can send requests.
- Policy
- A pipeline policy.
- Seekable
Stream - Enable a type implementing
AsyncRead
to be consumed as if it were aStream
ofBytes
.
Functions§
- new_
http_ client - Construct a new
HttpClient
- to_json
- Serialize a type to json.
Type Aliases§
- Policy
Result - A specialized
Result
type for policies. - Request
Id - A unique identifier for a request.
- Session
Token - A unique session token.