#[non_exhaustive]pub struct AggregationInfo {
pub aggregation_level: AggregationLevel,
pub aggregation_interval: AggregationInterval,
pub aggregation_count: i32,
/* private fields */
}Expand description
Represents the aggregation level and interval for pricing of a single SKU.
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.aggregation_level: AggregationLevel§aggregation_interval: AggregationInterval§aggregation_count: i32The number of intervals to aggregate over. Example: If aggregation_level is “DAILY” and aggregation_count is 14, aggregation will be over 14 days.
Implementations§
Source§impl AggregationInfo
impl AggregationInfo
pub fn new() -> Self
Sourcepub fn set_aggregation_level<T: Into<AggregationLevel>>(self, v: T) -> Self
pub fn set_aggregation_level<T: Into<AggregationLevel>>(self, v: T) -> Self
Sets the value of aggregation_level.
§Example
ⓘ
use google_cloud_billing_v1::model::aggregation_info::AggregationLevel;
let x0 = AggregationInfo::new().set_aggregation_level(AggregationLevel::Account);
let x1 = AggregationInfo::new().set_aggregation_level(AggregationLevel::Project);Sourcepub fn set_aggregation_interval<T: Into<AggregationInterval>>(
self,
v: T,
) -> Self
pub fn set_aggregation_interval<T: Into<AggregationInterval>>( self, v: T, ) -> Self
Sets the value of aggregation_interval.
§Example
ⓘ
use google_cloud_billing_v1::model::aggregation_info::AggregationInterval;
let x0 = AggregationInfo::new().set_aggregation_interval(AggregationInterval::Daily);
let x1 = AggregationInfo::new().set_aggregation_interval(AggregationInterval::Monthly);Sourcepub fn set_aggregation_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_aggregation_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of aggregation_count.
§Example
ⓘ
let x = AggregationInfo::new().set_aggregation_count(42);Trait Implementations§
Source§impl Clone for AggregationInfo
impl Clone for AggregationInfo
Source§fn clone(&self) -> AggregationInfo
fn clone(&self) -> AggregationInfo
Returns a duplicate 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 AggregationInfo
impl Debug for AggregationInfo
Source§impl Default for AggregationInfo
impl Default for AggregationInfo
Source§fn default() -> AggregationInfo
fn default() -> AggregationInfo
Returns the “default value” for a type. Read more
Source§impl Message for AggregationInfo
impl Message for AggregationInfo
Source§impl PartialEq for AggregationInfo
impl PartialEq for AggregationInfo
impl StructuralPartialEq for AggregationInfo
Auto Trait Implementations§
impl Freeze for AggregationInfo
impl RefUnwindSafe for AggregationInfo
impl Send for AggregationInfo
impl Sync for AggregationInfo
impl Unpin for AggregationInfo
impl UnsafeUnpin for AggregationInfo
impl UnwindSafe for AggregationInfo
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