pub struct TokenTrendReport {
pub estimate_kind: String,
pub estimator: String,
pub estimate_scope: String,
pub session: Option<String>,
pub window: TokenTrendWindow,
pub periods: Vec<TokenTrendPeriod>,
pub detail_availability: UsageDetailAvailability,
}Expand description
Token savings trend report.
Fields§
§estimate_kind: StringCounting mode for the reported numbers.
estimator: StringEstimator used to produce the reported numbers.
estimate_scope: StringScope and accuracy boundary for the reported numbers.
session: Option<String>Optional caller-visible compatibility-label filter.
window: TokenTrendWindowGrouping window.
periods: Vec<TokenTrendPeriod>Period aggregates ordered oldest to newest.
detail_availability: UsageDetailAvailabilityAvailability of the requested retained trend scope.
Implementations§
Source§impl TokenTrendReport
impl TokenTrendReport
Sourcepub fn new(
session: Option<String>,
window: TokenTrendWindow,
periods: Vec<TokenTrendPeriod>,
) -> Self
pub fn new( session: Option<String>, window: TokenTrendWindow, periods: Vec<TokenTrendPeriod>, ) -> Self
Build a trend report from period aggregates.
Sourcepub const fn set_detail_availability(
&mut self,
availability: UsageDetailAvailability,
)
pub const fn set_detail_availability( &mut self, availability: UsageDetailAvailability, )
Set the truth state for the requested retained trend scope.
Trait Implementations§
Source§impl Clone for TokenTrendReport
impl Clone for TokenTrendReport
Source§fn clone(&self) -> TokenTrendReport
fn clone(&self) -> TokenTrendReport
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 TokenTrendReport
impl Debug for TokenTrendReport
Source§impl<'de> Deserialize<'de> for TokenTrendReport
impl<'de> Deserialize<'de> for TokenTrendReport
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 PartialEq for TokenTrendReport
impl PartialEq for TokenTrendReport
Source§impl Serialize for TokenTrendReport
impl Serialize for TokenTrendReport
impl StructuralPartialEq for TokenTrendReport
Auto Trait Implementations§
impl Freeze for TokenTrendReport
impl RefUnwindSafe for TokenTrendReport
impl Send for TokenTrendReport
impl Sync for TokenTrendReport
impl Unpin for TokenTrendReport
impl UnwindSafe for TokenTrendReport
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