pub struct SessionCounts {
pub started: u64,
pub completed: u64,
pub failed: u64,
}Expand description
Point counts by outcome, not session-deduplicated, so the three need not
balance: a pre-start failure has no started, a cross-manager handoff
re-emits it. Billing uses the compute totals, which derive only from the
terminal points.
Within a UsageBucket, started counts sessions that began that day and
completed/failed those that ended that day.
Fields§
§started: u64§completed: u64§failed: u64Implementations§
Source§impl SessionCounts
impl SessionCounts
pub fn saturating_add(self, other: Self) -> Self
Trait Implementations§
Source§impl Clone for SessionCounts
impl Clone for SessionCounts
Source§fn clone(&self) -> SessionCounts
fn clone(&self) -> SessionCounts
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 moreimpl Copy for SessionCounts
Source§impl Debug for SessionCounts
impl Debug for SessionCounts
Source§impl Default for SessionCounts
impl Default for SessionCounts
Source§fn default() -> SessionCounts
fn default() -> SessionCounts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionCounts
impl<'de> Deserialize<'de> for SessionCounts
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
impl Eq for SessionCounts
Source§impl PartialEq for SessionCounts
impl PartialEq for SessionCounts
Source§impl Serialize for SessionCounts
impl Serialize for SessionCounts
impl StructuralPartialEq for SessionCounts
Auto Trait Implementations§
impl Freeze for SessionCounts
impl RefUnwindSafe for SessionCounts
impl Send for SessionCounts
impl Sync for SessionCounts
impl Unpin for SessionCounts
impl UnsafeUnpin for SessionCounts
impl UnwindSafe for SessionCounts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more