pub struct UsageTelemetryRecord {
pub usage_record_id: TelemetryUsageRecordId,
pub units: UsageUnits,
pub provider_id: Option<String>,
pub model_id: Option<String>,
}Expand description
Carries the usage telemetry record record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§usage_record_id: TelemetryUsageRecordIdStable usage record id used for typed lineage, lookup, or dedupe.
units: UsageUnitsUnits used by this record or request.
provider_id: Option<String>Stable provider id used for typed lineage, lookup, or dedupe.
model_id: Option<String>Stable model id used for typed lineage, lookup, or dedupe.
Trait Implementations§
Source§impl Clone for UsageTelemetryRecord
impl Clone for UsageTelemetryRecord
Source§fn clone(&self) -> UsageTelemetryRecord
fn clone(&self) -> UsageTelemetryRecord
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 UsageTelemetryRecord
impl Debug for UsageTelemetryRecord
Source§impl<'de> Deserialize<'de> for UsageTelemetryRecord
impl<'de> Deserialize<'de> for UsageTelemetryRecord
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 UsageTelemetryRecord
impl PartialEq for UsageTelemetryRecord
Source§fn eq(&self, other: &UsageTelemetryRecord) -> bool
fn eq(&self, other: &UsageTelemetryRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UsageTelemetryRecord
impl Serialize for UsageTelemetryRecord
impl Eq for UsageTelemetryRecord
impl StructuralPartialEq for UsageTelemetryRecord
Auto Trait Implementations§
impl Freeze for UsageTelemetryRecord
impl RefUnwindSafe for UsageTelemetryRecord
impl Send for UsageTelemetryRecord
impl Sync for UsageTelemetryRecord
impl Unpin for UsageTelemetryRecord
impl UnsafeUnpin for UsageTelemetryRecord
impl UnwindSafe for UsageTelemetryRecord
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