nominal-api-conjure 0.1283.0

Conjure HTTP API bindings for the Nominal platform
Documentation
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct GetQuotaUsageResponse {
    #[builder(default, list(item(type = super::QuotaIntervalUsage)))]
    #[serde(rename = "intervals", skip_serializing_if = "Vec::is_empty", default)]
    intervals: Vec<super::QuotaIntervalUsage>,
}
impl GetQuotaUsageResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// One entry per quota window, ordered by ascending duration. Empty when quotas are not
    /// enabled for the organization or the user has no recorded usage yet.
    #[inline]
    pub fn intervals(&self) -> &[super::QuotaIntervalUsage] {
        &*self.intervals
    }
}