pub struct DailyCostHint {
pub usd_per_day: f64,
pub usage_dependent: bool,
}Expand description
Rough daily-cost hint for a single tagged resource, used in the pre-delete preview so users can see “oh wait, that’s a $40/day RDS instance”.
These are intentionally conservative floor estimates based on the cheapest common SKU (e.g. RDS t3.micro, EC2 t3.micro, KMS single-region). Storage- and request-driven services (S3, DynamoDB, CloudWatch Logs) report usage-dependent because we can’t see the bytes from the tag API alone — the number we show is a rock-bottom floor assuming idle.
Fields§
§usd_per_day: f64Conservative lower bound, USD/day.
usage_dependent: boolTrue when actual cost scales with size or traffic beyond this floor.
Trait Implementations§
Source§impl Clone for DailyCostHint
impl Clone for DailyCostHint
Source§fn clone(&self) -> DailyCostHint
fn clone(&self) -> DailyCostHint
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 DailyCostHint
impl Debug for DailyCostHint
Source§impl PartialEq for DailyCostHint
impl PartialEq for DailyCostHint
impl Copy for DailyCostHint
impl StructuralPartialEq for DailyCostHint
Auto Trait Implementations§
impl Freeze for DailyCostHint
impl RefUnwindSafe for DailyCostHint
impl Send for DailyCostHint
impl Sync for DailyCostHint
impl Unpin for DailyCostHint
impl UnsafeUnpin for DailyCostHint
impl UnwindSafe for DailyCostHint
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 moreCreates a shared type from an unshared type.