Struct aws_sdk_lightsail::types::EstimateByTime
source · #[non_exhaustive]pub struct EstimateByTime {
pub usage_cost: Option<f64>,
pub pricing_unit: Option<PricingUnit>,
pub unit: Option<f64>,
pub currency: Option<Currency>,
pub time_period: Option<TimePeriod>,
}
Expand description
An estimate that's associated with a time period.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.usage_cost: Option<f64>
The amount of cost or usage that's measured for the cost estimate.
pricing_unit: Option<PricingUnit>
The unit of measurement that's used for the cost estimate.
unit: Option<f64>
The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.
currency: Option<Currency>
The currency of the estimate in USD.
time_period: Option<TimePeriod>
The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.
Implementations§
source§impl EstimateByTime
impl EstimateByTime
sourcepub fn usage_cost(&self) -> Option<f64>
pub fn usage_cost(&self) -> Option<f64>
The amount of cost or usage that's measured for the cost estimate.
sourcepub fn pricing_unit(&self) -> Option<&PricingUnit>
pub fn pricing_unit(&self) -> Option<&PricingUnit>
The unit of measurement that's used for the cost estimate.
sourcepub fn unit(&self) -> Option<f64>
pub fn unit(&self) -> Option<f64>
The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.
sourcepub fn time_period(&self) -> Option<&TimePeriod>
pub fn time_period(&self) -> Option<&TimePeriod>
The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.
source§impl EstimateByTime
impl EstimateByTime
sourcepub fn builder() -> EstimateByTimeBuilder
pub fn builder() -> EstimateByTimeBuilder
Creates a new builder-style object to manufacture EstimateByTime
.
Trait Implementations§
source§impl Clone for EstimateByTime
impl Clone for EstimateByTime
source§fn clone(&self) -> EstimateByTime
fn clone(&self) -> EstimateByTime
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EstimateByTime
impl Debug for EstimateByTime
source§impl PartialEq for EstimateByTime
impl PartialEq for EstimateByTime
source§fn eq(&self, other: &EstimateByTime) -> bool
fn eq(&self, other: &EstimateByTime) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EstimateByTime
Auto Trait Implementations§
impl Freeze for EstimateByTime
impl RefUnwindSafe for EstimateByTime
impl Send for EstimateByTime
impl Sync for EstimateByTime
impl Unpin for EstimateByTime
impl UnwindSafe for EstimateByTime
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
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>
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>
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