Struct aws_sdk_licensemanager::types::Entitlement
source · #[non_exhaustive]pub struct Entitlement {
pub name: Option<String>,
pub value: Option<String>,
pub max_count: Option<i64>,
pub overage: Option<bool>,
pub unit: Option<EntitlementUnit>,
pub allow_check_in: Option<bool>,
}Expand description
Describes a resource entitled for use with a license.
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.name: Option<String>Entitlement name.
value: Option<String>Entitlement resource. Use only if the unit is None.
max_count: Option<i64>Maximum entitlement count. Use if the unit is not None.
overage: Option<bool>Indicates whether overages are allowed.
unit: Option<EntitlementUnit>Entitlement unit.
allow_check_in: Option<bool>Indicates whether check-ins are allowed.
Implementations§
source§impl Entitlement
impl Entitlement
sourcepub fn unit(&self) -> Option<&EntitlementUnit>
pub fn unit(&self) -> Option<&EntitlementUnit>
Entitlement unit.
sourcepub fn allow_check_in(&self) -> Option<bool>
pub fn allow_check_in(&self) -> Option<bool>
Indicates whether check-ins are allowed.
source§impl Entitlement
impl Entitlement
sourcepub fn builder() -> EntitlementBuilder
pub fn builder() -> EntitlementBuilder
Creates a new builder-style object to manufacture Entitlement.
Trait Implementations§
source§impl Clone for Entitlement
impl Clone for Entitlement
source§fn clone(&self) -> Entitlement
fn clone(&self) -> Entitlement
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 Entitlement
impl Debug for Entitlement
source§impl PartialEq<Entitlement> for Entitlement
impl PartialEq<Entitlement> for Entitlement
source§fn eq(&self, other: &Entitlement) -> bool
fn eq(&self, other: &Entitlement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for Entitlement
Auto Trait Implementations§
impl RefUnwindSafe for Entitlement
impl Send for Entitlement
impl Sync for Entitlement
impl Unpin for Entitlement
impl UnwindSafe for Entitlement
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