#[non_exhaustive]pub struct ConsumedLicenseSummary {
pub resource_type: Option<ResourceType>,
pub consumed_licenses: Option<i64>,
}Expand description
Details about license consumption.
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_type: Option<ResourceType>Resource type of the resource consuming a license.
consumed_licenses: Option<i64>Number of licenses consumed by the resource.
Implementations§
source§impl ConsumedLicenseSummary
impl ConsumedLicenseSummary
sourcepub fn resource_type(&self) -> Option<&ResourceType>
pub fn resource_type(&self) -> Option<&ResourceType>
Resource type of the resource consuming a license.
sourcepub fn consumed_licenses(&self) -> Option<i64>
pub fn consumed_licenses(&self) -> Option<i64>
Number of licenses consumed by the resource.
source§impl ConsumedLicenseSummary
impl ConsumedLicenseSummary
sourcepub fn builder() -> ConsumedLicenseSummaryBuilder
pub fn builder() -> ConsumedLicenseSummaryBuilder
Creates a new builder-style object to manufacture ConsumedLicenseSummary.
Trait Implementations§
source§impl Clone for ConsumedLicenseSummary
impl Clone for ConsumedLicenseSummary
source§fn clone(&self) -> ConsumedLicenseSummary
fn clone(&self) -> ConsumedLicenseSummary
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 ConsumedLicenseSummary
impl Debug for ConsumedLicenseSummary
source§impl PartialEq<ConsumedLicenseSummary> for ConsumedLicenseSummary
impl PartialEq<ConsumedLicenseSummary> for ConsumedLicenseSummary
source§fn eq(&self, other: &ConsumedLicenseSummary) -> bool
fn eq(&self, other: &ConsumedLicenseSummary) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ConsumedLicenseSummary
Auto Trait Implementations§
impl RefUnwindSafe for ConsumedLicenseSummary
impl Send for ConsumedLicenseSummary
impl Sync for ConsumedLicenseSummary
impl Unpin for ConsumedLicenseSummary
impl UnwindSafe for ConsumedLicenseSummary
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