#[non_exhaustive]pub struct ConsumptionConfiguration {
pub renew_type: Option<RenewType>,
pub provisional_configuration: Option<ProvisionalConfiguration>,
pub borrow_configuration: Option<BorrowConfiguration>,
}Expand description
Details about a consumption configuration.
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.renew_type: Option<RenewType>Renewal frequency.
provisional_configuration: Option<ProvisionalConfiguration>Details about a provisional configuration.
borrow_configuration: Option<BorrowConfiguration>Details about a borrow configuration.
Implementations§
source§impl ConsumptionConfiguration
impl ConsumptionConfiguration
sourcepub fn renew_type(&self) -> Option<&RenewType>
pub fn renew_type(&self) -> Option<&RenewType>
Renewal frequency.
sourcepub fn provisional_configuration(&self) -> Option<&ProvisionalConfiguration>
pub fn provisional_configuration(&self) -> Option<&ProvisionalConfiguration>
Details about a provisional configuration.
sourcepub fn borrow_configuration(&self) -> Option<&BorrowConfiguration>
pub fn borrow_configuration(&self) -> Option<&BorrowConfiguration>
Details about a borrow configuration.
source§impl ConsumptionConfiguration
impl ConsumptionConfiguration
sourcepub fn builder() -> ConsumptionConfigurationBuilder
pub fn builder() -> ConsumptionConfigurationBuilder
Creates a new builder-style object to manufacture ConsumptionConfiguration.
Trait Implementations§
source§impl Clone for ConsumptionConfiguration
impl Clone for ConsumptionConfiguration
source§fn clone(&self) -> ConsumptionConfiguration
fn clone(&self) -> ConsumptionConfiguration
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 ConsumptionConfiguration
impl Debug for ConsumptionConfiguration
source§impl PartialEq<ConsumptionConfiguration> for ConsumptionConfiguration
impl PartialEq<ConsumptionConfiguration> for ConsumptionConfiguration
source§fn eq(&self, other: &ConsumptionConfiguration) -> bool
fn eq(&self, other: &ConsumptionConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ConsumptionConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for ConsumptionConfiguration
impl Send for ConsumptionConfiguration
impl Sync for ConsumptionConfiguration
impl Unpin for ConsumptionConfiguration
impl UnwindSafe for ConsumptionConfiguration
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