#[non_exhaustive]pub struct InstanceFamilyCreditSpecification {
pub instance_family: Option<UnlimitedSupportedInstanceFamily>,
pub cpu_credits: Option<String>,
}
Expand description
Describes the default credit option for CPU usage of a burstable performance instance family.
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.instance_family: Option<UnlimitedSupportedInstanceFamily>
The instance family.
cpu_credits: Option<String>
The default credit option for CPU usage of the instance family. Valid values are standard
and unlimited
.
Implementations§
source§impl InstanceFamilyCreditSpecification
impl InstanceFamilyCreditSpecification
sourcepub fn instance_family(&self) -> Option<&UnlimitedSupportedInstanceFamily>
pub fn instance_family(&self) -> Option<&UnlimitedSupportedInstanceFamily>
The instance family.
sourcepub fn cpu_credits(&self) -> Option<&str>
pub fn cpu_credits(&self) -> Option<&str>
The default credit option for CPU usage of the instance family. Valid values are standard
and unlimited
.
source§impl InstanceFamilyCreditSpecification
impl InstanceFamilyCreditSpecification
sourcepub fn builder() -> InstanceFamilyCreditSpecificationBuilder
pub fn builder() -> InstanceFamilyCreditSpecificationBuilder
Creates a new builder-style object to manufacture InstanceFamilyCreditSpecification
.
Trait Implementations§
source§impl Clone for InstanceFamilyCreditSpecification
impl Clone for InstanceFamilyCreditSpecification
source§fn clone(&self) -> InstanceFamilyCreditSpecification
fn clone(&self) -> InstanceFamilyCreditSpecification
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 PartialEq for InstanceFamilyCreditSpecification
impl PartialEq for InstanceFamilyCreditSpecification
source§fn eq(&self, other: &InstanceFamilyCreditSpecification) -> bool
fn eq(&self, other: &InstanceFamilyCreditSpecification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceFamilyCreditSpecification
Auto Trait Implementations§
impl Freeze for InstanceFamilyCreditSpecification
impl RefUnwindSafe for InstanceFamilyCreditSpecification
impl Send for InstanceFamilyCreditSpecification
impl Sync for InstanceFamilyCreditSpecification
impl Unpin for InstanceFamilyCreditSpecification
impl UnwindSafe for InstanceFamilyCreditSpecification
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.