pub struct TierCostModel {
pub storage_cost_per_gb_month: f64,
pub write_request_cost_per_1k: f64,
pub read_request_cost_per_1k: f64,
pub retrieval_cost_per_gb: f64,
pub transfer_cost_per_gb: f64,
pub min_storage_days: u32,
pub early_deletion_cost_per_gb: f64,
}Expand description
Cost model for a storage tier
Fields§
§storage_cost_per_gb_month: f64Storage cost per GB per month
write_request_cost_per_1k: f64PUT/POST/LIST request cost per 1000 requests
read_request_cost_per_1k: f64GET/HEAD request cost per 1000 requests
retrieval_cost_per_gb: f64Data retrieval cost per GB (for cold tiers)
transfer_cost_per_gb: f64Data transfer out cost per GB
min_storage_days: u32Minimum storage duration in days
early_deletion_cost_per_gb: f64Early deletion fee per GB
Implementations§
Source§impl TierCostModel
impl TierCostModel
Sourcepub fn aws_s3_standard() -> Self
pub fn aws_s3_standard() -> Self
AWS S3 Standard tier pricing (approximate)
Sourcepub fn aws_s3_infrequent() -> Self
pub fn aws_s3_infrequent() -> Self
AWS S3 Infrequent Access tier pricing
Sourcepub fn aws_s3_glacier() -> Self
pub fn aws_s3_glacier() -> Self
AWS S3 Glacier tier pricing
Sourcepub fn azure_cool() -> Self
pub fn azure_cool() -> Self
Azure Blob Cool tier pricing
Sourcepub fn azure_archive() -> Self
pub fn azure_archive() -> Self
Azure Blob Archive tier pricing
Sourcepub fn gcp_standard() -> Self
pub fn gcp_standard() -> Self
GCP Standard storage pricing
Sourcepub fn gcp_nearline() -> Self
pub fn gcp_nearline() -> Self
GCP Nearline storage pricing
Sourcepub fn gcp_coldline() -> Self
pub fn gcp_coldline() -> Self
GCP Coldline storage pricing
Trait Implementations§
Source§impl Clone for TierCostModel
impl Clone for TierCostModel
Source§fn clone(&self) -> TierCostModel
fn clone(&self) -> TierCostModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TierCostModel
impl Debug for TierCostModel
Source§impl<'de> Deserialize<'de> for TierCostModel
impl<'de> Deserialize<'de> for TierCostModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TierCostModel
impl RefUnwindSafe for TierCostModel
impl Send for TierCostModel
impl Sync for TierCostModel
impl Unpin for TierCostModel
impl UnwindSafe for TierCostModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more