Skip to main content

cloud_sdk/
operation.rs

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