pub struct UsageObservation {
pub observed_at_ms: u64,
pub outcome: ObservationOutcome,
}Expand description
What one usage poll returned. Produced by the runner’s usage adapter.
Fields§
§observed_at_ms: u64When the body was received (epoch ms).
outcome: ObservationOutcomeImplementations§
Source§impl UsageObservation
impl UsageObservation
Sourcepub fn to_quota_observation(&self) -> QuotaObservation
pub fn to_quota_observation(&self) -> QuotaObservation
The policy view of this observation (for quota_policy::select).
Trait Implementations§
Source§impl Clone for UsageObservation
impl Clone for UsageObservation
Source§impl Debug for UsageObservation
impl Debug for UsageObservation
Source§impl<'de> Deserialize<'de> for UsageObservation
impl<'de> Deserialize<'de> for UsageObservation
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 UsageObservation
impl PartialEq for UsageObservation
Source§impl Serialize for UsageObservation
impl Serialize for UsageObservation
impl StructuralPartialEq for UsageObservation
Auto Trait Implementations§
impl Freeze for UsageObservation
impl RefUnwindSafe for UsageObservation
impl Send for UsageObservation
impl Sync for UsageObservation
impl Unpin for UsageObservation
impl UnsafeUnpin for UsageObservation
impl UnwindSafe for UsageObservation
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