Struct aws_sdk_lightsail::types::ResourceBudgetEstimate
source · #[non_exhaustive]pub struct ResourceBudgetEstimate {
pub resource_name: Option<String>,
pub resource_type: Option<ResourceType>,
pub cost_estimates: Option<Vec<CostEstimate>>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
}
Expand description
Describes the estimated cost or usage that a budget tracks.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.resource_name: Option<String>
The resource name.
resource_type: Option<ResourceType>
The type of resource the budget will track.
cost_estimates: Option<Vec<CostEstimate>>
The cost estimate for the specified budget.
start_time: Option<DateTime>
The estimate start time.
end_time: Option<DateTime>
The estimate end time.
Implementations§
source§impl ResourceBudgetEstimate
impl ResourceBudgetEstimate
sourcepub fn resource_name(&self) -> Option<&str>
pub fn resource_name(&self) -> Option<&str>
The resource name.
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
The type of resource the budget will track.
sourcepub fn cost_estimates(&self) -> &[CostEstimate]
pub fn cost_estimates(&self) -> &[CostEstimate]
The cost estimate for the specified budget.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .cost_estimates.is_none()
.
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
The estimate start time.
source§impl ResourceBudgetEstimate
impl ResourceBudgetEstimate
sourcepub fn builder() -> ResourceBudgetEstimateBuilder
pub fn builder() -> ResourceBudgetEstimateBuilder
Creates a new builder-style object to manufacture ResourceBudgetEstimate
.
Trait Implementations§
source§impl Clone for ResourceBudgetEstimate
impl Clone for ResourceBudgetEstimate
source§fn clone(&self) -> ResourceBudgetEstimate
fn clone(&self) -> ResourceBudgetEstimate
Returns a copy 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 ResourceBudgetEstimate
impl Debug for ResourceBudgetEstimate
source§impl PartialEq for ResourceBudgetEstimate
impl PartialEq for ResourceBudgetEstimate
source§fn eq(&self, other: &ResourceBudgetEstimate) -> bool
fn eq(&self, other: &ResourceBudgetEstimate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourceBudgetEstimate
Auto Trait Implementations§
impl Freeze for ResourceBudgetEstimate
impl RefUnwindSafe for ResourceBudgetEstimate
impl Send for ResourceBudgetEstimate
impl Sync for ResourceBudgetEstimate
impl Unpin for ResourceBudgetEstimate
impl UnwindSafe for ResourceBudgetEstimate
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> 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.