pub struct CohortGroup {
pub cohort_hash: Option<String>,
pub sessions: Vec<DeviceEntry>,
pub first_seen: i64,
pub last_seen: i64,
pub recognition: Recognition,
pub contains_current: bool,
}Expand description
One grouped device: every session that shares a cohort hash, collapsed into a single row with its recognition state and the durable first/last-seen span.
Fields§
§cohort_hash: Option<String>The shared cohort hash, or None for an ungrouped session (the client
asserted no cohort — it cannot be grouped and stands alone).
sessions: Vec<DeviceEntry>The sessions in this group, oldest first.
first_seen: i64First time this cohort was seen (durable map, else derived from sessions).
last_seen: i64Most recent time this cohort was seen (durable map, else derived from sessions).
recognition: RecognitionThe recognition state driving the group’s label.
contains_current: boolWhether the current session is in this group (“this device”).
Implementations§
Source§impl CohortGroup
impl CohortGroup
Sourcepub fn label_key(&self) -> &'static str
pub fn label_key(&self) -> &'static str
The catalog key the UI renders for this group. The current device asserts “this device”; otherwise the recognition state decides.
Sourcepub fn support_bundle(&self) -> SupportBundle
pub fn support_bundle(&self) -> SupportBundle
Build the one-tap support bundle for this group: the exact cohort hash and the
per-session (device_id, session_id, first_seen, last_seen) map, for a support
report. The dispute path — the client asserts, it does not litigate.
Trait Implementations§
Source§impl Clone for CohortGroup
impl Clone for CohortGroup
Source§fn clone(&self) -> CohortGroup
fn clone(&self) -> CohortGroup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CohortGroup
impl Debug for CohortGroup
impl Eq for CohortGroup
Source§impl PartialEq for CohortGroup
impl PartialEq for CohortGroup
Source§fn eq(&self, other: &CohortGroup) -> bool
fn eq(&self, other: &CohortGroup) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CohortGroup
Auto Trait Implementations§
impl Freeze for CohortGroup
impl RefUnwindSafe for CohortGroup
impl Send for CohortGroup
impl Sync for CohortGroup
impl Unpin for CohortGroup
impl UnsafeUnpin for CohortGroup
impl UnwindSafe for CohortGroup
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
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> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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