use azure_data_cosmos_driver::options::OperationOptions;
use crate::models::ThroughputProperties;
#[derive(Clone, Default)]
#[non_exhaustive]
pub struct CreateContainerOptions {
pub operation: OperationOptions,
pub(crate) throughput: Option<ThroughputProperties>,
}
impl CreateContainerOptions {
pub fn with_throughput(mut self, throughput: ThroughputProperties) -> Self {
self.throughput = Some(throughput);
self
}
pub fn with_operation_options(mut self, operation: OperationOptions) -> Self {
self.operation = operation;
self
}
}
#[derive(Clone, Default)]
#[non_exhaustive]
pub struct ReplaceContainerOptions {
pub operation: OperationOptions,
}
impl ReplaceContainerOptions {
pub fn with_operation_options(mut self, operation: OperationOptions) -> Self {
self.operation = operation;
self
}
}
#[derive(Clone, Default)]
#[non_exhaustive]
pub struct DeleteContainerOptions {
pub operation: OperationOptions,
}
impl DeleteContainerOptions {
pub fn with_operation_options(mut self, operation: OperationOptions) -> Self {
self.operation = operation;
self
}
}
#[derive(Clone, Default)]
#[non_exhaustive]
pub struct ReadContainerOptions {
pub operation: OperationOptions,
}
impl ReadContainerOptions {
pub fn with_operation_options(mut self, operation: OperationOptions) -> Self {
self.operation = operation;
self
}
}
#[derive(Clone, Default)]
#[non_exhaustive]
pub struct QueryContainersOptions {
pub operation: OperationOptions,
}
impl QueryContainersOptions {
pub fn with_operation_options(mut self, operation: OperationOptions) -> Self {
self.operation = operation;
self
}
}