Skip to main content

cloud_sdk/
operation.rs

1//! Allocation-free operation preparation and checked response policy.
2
3mod metadata;
4mod operation_id;
5mod policy;
6mod prepared;
7mod storage;
8
9pub use metadata::{
10    CostIntent, OperationImpact, OperationMetadata, OperationMetadataError, RequestIdPolicy,
11    RequestSemantics, RetryEligibility,
12};
13pub use operation_id::{OperationId, OperationIdError};
14pub use policy::{
15    CheckedResponse, CheckedResponseGuard, ContentTypePolicy, ResponseBodyPolicy, ResponsePolicy,
16    ResponsePolicyError, ResponsePolicyValidationError,
17};
18pub use prepared::{
19    PreparationStorage, PrepareOperation, PreparedExecutionError, PreparedRequest,
20    PreparedRequestPolicyError, ProviderService,
21};
22#[cfg(feature = "alloc")]
23pub use storage::OwnedPreparationStorage;
24pub use storage::{
25    DEFAULT_BODY_BYTES, EMBEDDED_BODY_BYTES, LARGE_BODY_BYTES, PreparationCapacityError,
26    PreparationCapacityProfile, PreparationStorageGuard,
27};
28
29#[cfg(test)]
30mod prepared_policy_tests;
31#[cfg(test)]
32mod response_tests;
33#[cfg(test)]
34mod tests;