pub struct UsageEvent {
pub kind: UsageEventKind,
pub capability_ref: String,
pub timestamp: String,
}Expand description
One usage-telemetry event: exactly the capability-identifying fields spec 088 FR-004 permits (the install ID, also required by FR-004, is attached by the caller’s concrete sink implementation, not this port).
Fields§
§kind: UsageEventKindWhich kind of event occurred.
capability_ref: StringThe capability reference, formatted as namespace/id@version.
timestamp: StringEvent timestamp (ISO 8601).
Trait Implementations§
Source§impl Clone for UsageEvent
impl Clone for UsageEvent
Source§fn clone(&self) -> UsageEvent
fn clone(&self) -> UsageEvent
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 UsageEvent
impl Debug for UsageEvent
impl Eq for UsageEvent
Source§impl PartialEq for UsageEvent
impl PartialEq for UsageEvent
impl StructuralPartialEq for UsageEvent
Auto Trait Implementations§
impl Freeze for UsageEvent
impl RefUnwindSafe for UsageEvent
impl Send for UsageEvent
impl Sync for UsageEvent
impl Unpin for UsageEvent
impl UnsafeUnpin for UsageEvent
impl UnwindSafe for UsageEvent
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