pub enum BucketSize {
Hour,
Day,
Week,
Month,
Year,
}Expand description
Time bucket size for aggregating billing records.
Determines the granularity of billing data aggregation. Each billing record represents usage and costs for one time bucket period.
§Granularity Trade-offs
- Hour: Most detailed, suitable for real-time monitoring and debugging
- Day: Good balance of detail and overview (default for most use cases)
- Week: Weekly trends and medium-term analysis
- Month: Monthly accounting and budget tracking
- Year: Long-term cost analysis and yearly planning
Variants§
Hour
Hourly billing aggregation for detailed analysis.
Day
Daily billing aggregation (default for most queries).
Week
Weekly billing aggregation for trend analysis.
Month
Monthly billing aggregation for accounting purposes.
Year
Yearly billing aggregation for long-term planning.
Trait Implementations§
Source§impl Clone for BucketSize
impl Clone for BucketSize
Source§fn clone(&self) -> BucketSize
fn clone(&self) -> BucketSize
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 BucketSize
impl Debug for BucketSize
Source§impl Default for BucketSize
impl Default for BucketSize
Source§fn default() -> BucketSize
fn default() -> BucketSize
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BucketSize
impl<'de> Deserialize<'de> for BucketSize
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BucketSize
impl Display for BucketSize
Source§impl FromStr for BucketSize
impl FromStr for BucketSize
Source§impl PartialEq for BucketSize
impl PartialEq for BucketSize
Source§impl Serialize for BucketSize
impl Serialize for BucketSize
Source§impl TryFrom<&str> for BucketSize
impl TryFrom<&str> for BucketSize
impl Copy for BucketSize
impl Eq for BucketSize
impl StructuralPartialEq for BucketSize
Auto Trait Implementations§
impl Freeze for BucketSize
impl RefUnwindSafe for BucketSize
impl Send for BucketSize
impl Sync for BucketSize
impl Unpin for BucketSize
impl UnwindSafe for BucketSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.