pub struct UsageSummary {Show 20 fields
pub schema_version: String,
pub summary_id: SummaryId,
pub device_id: String,
pub provider: String,
pub source_id: SourceId,
pub provider_account_id: Option<ProviderAccountId>,
pub source: EventSource,
pub model: Option<ModelInfo>,
pub models: Vec<SummaryModelUsage>,
pub usage: UsageCounts,
pub cost: CostInfo,
pub parse_evidence: Option<ParseEvidence>,
pub project: Option<ProjectInfo>,
pub privacy: PrivacyInfo,
pub metrics: Option<SummaryMetrics>,
pub period_start: Option<DateTime<Utc>>,
pub period_end: Option<DateTime<Utc>>,
pub observed_at: DateTime<Utc>,
pub metadata: SummaryMetadata,
pub imported_at: DateTime<Utc>,
}Fields§
§schema_version: String§summary_id: SummaryId§device_id: String§provider: String§source_id: SourceId§provider_account_id: Option<ProviderAccountId>§source: EventSource§model: Option<ModelInfo>§models: Vec<SummaryModelUsage>§usage: UsageCounts§cost: CostInfo§parse_evidence: Option<ParseEvidence>§project: Option<ProjectInfo>§privacy: PrivacyInfo§metrics: Option<SummaryMetrics>§period_start: Option<DateTime<Utc>>§period_end: Option<DateTime<Utc>>§observed_at: DateTime<Utc>§metadata: SummaryMetadata§imported_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for UsageSummary
impl Clone for UsageSummary
Source§fn clone(&self) -> UsageSummary
fn clone(&self) -> UsageSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UsageSummary
impl Debug for UsageSummary
Source§impl<'de> Deserialize<'de> for UsageSummary
impl<'de> Deserialize<'de> for UsageSummary
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 JsonSchema for UsageSummary
impl JsonSchema for UsageSummary
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for UsageSummary
impl PartialEq for UsageSummary
Source§fn eq(&self, other: &UsageSummary) -> bool
fn eq(&self, other: &UsageSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UsageSummary
impl Serialize for UsageSummary
impl StructuralPartialEq for UsageSummary
Auto Trait Implementations§
impl Freeze for UsageSummary
impl RefUnwindSafe for UsageSummary
impl Send for UsageSummary
impl Sync for UsageSummary
impl Unpin for UsageSummary
impl UnsafeUnpin for UsageSummary
impl UnwindSafe for UsageSummary
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