#[non_exhaustive]pub struct EntitlementUsageBuilder { /* private fields */ }Expand description
A builder for EntitlementUsage.
Implementations§
source§impl EntitlementUsageBuilder
impl EntitlementUsageBuilder
sourcepub fn consumed_value(self, input: impl Into<String>) -> Self
pub fn consumed_value(self, input: impl Into<String>) -> Self
Resource usage consumed.
sourcepub fn set_consumed_value(self, input: Option<String>) -> Self
pub fn set_consumed_value(self, input: Option<String>) -> Self
Resource usage consumed.
sourcepub fn get_consumed_value(&self) -> &Option<String>
pub fn get_consumed_value(&self) -> &Option<String>
Resource usage consumed.
sourcepub fn set_max_count(self, input: Option<String>) -> Self
pub fn set_max_count(self, input: Option<String>) -> Self
Maximum entitlement usage count.
sourcepub fn get_max_count(&self) -> &Option<String>
pub fn get_max_count(&self) -> &Option<String>
Maximum entitlement usage count.
sourcepub fn unit(self, input: EntitlementDataUnit) -> Self
pub fn unit(self, input: EntitlementDataUnit) -> Self
Entitlement usage unit.
sourcepub fn set_unit(self, input: Option<EntitlementDataUnit>) -> Self
pub fn set_unit(self, input: Option<EntitlementDataUnit>) -> Self
Entitlement usage unit.
sourcepub fn get_unit(&self) -> &Option<EntitlementDataUnit>
pub fn get_unit(&self) -> &Option<EntitlementDataUnit>
Entitlement usage unit.
sourcepub fn build(self) -> EntitlementUsage
pub fn build(self) -> EntitlementUsage
Consumes the builder and constructs a EntitlementUsage.
Trait Implementations§
source§impl Clone for EntitlementUsageBuilder
impl Clone for EntitlementUsageBuilder
source§fn clone(&self) -> EntitlementUsageBuilder
fn clone(&self) -> EntitlementUsageBuilder
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 EntitlementUsageBuilder
impl Debug for EntitlementUsageBuilder
source§impl Default for EntitlementUsageBuilder
impl Default for EntitlementUsageBuilder
source§fn default() -> EntitlementUsageBuilder
fn default() -> EntitlementUsageBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<EntitlementUsageBuilder> for EntitlementUsageBuilder
impl PartialEq<EntitlementUsageBuilder> for EntitlementUsageBuilder
source§fn eq(&self, other: &EntitlementUsageBuilder) -> bool
fn eq(&self, other: &EntitlementUsageBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for EntitlementUsageBuilder
Auto Trait Implementations§
impl RefUnwindSafe for EntitlementUsageBuilder
impl Send for EntitlementUsageBuilder
impl Sync for EntitlementUsageBuilder
impl Unpin for EntitlementUsageBuilder
impl UnwindSafe for EntitlementUsageBuilder
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