pub struct AggregateView {
pub group_id: Uuid,
pub group_name: Option<String>,
pub entries: Vec<AggregateEntry>,
pub origins: Vec<OriginStatus>,
pub cover: Option<Uuid>,
pub partial: bool,
}Expand description
The computed aggregate view over the constituents of one group. Nothing here is stored: it is recomputed at render and is identical across devices given the same inputs.
Fields§
§group_id: UuidThe group rendered.
group_name: Option<String>The LWW-converged group name across every included constituent’s assertion.
entries: Vec<AggregateEntry>Merged, capture-time-ordered entries (asset_id tiebreak) from every included
constituent — including unreachable origins, whose entries are flagged degraded.
origins: Vec<OriginStatus>Per-origin reachability for the included constituents (the partial-view indicator).
cover: Option<Uuid>The cover asset: the per-viewer override when it names an included asset, else the newest
included asset (max (capture_timestamp, asset_id)); None for an empty aggregate.
partial: booltrue when at least one included origin is currently unreachable — the aggregate is a
partial view.
Trait Implementations§
Source§impl Clone for AggregateView
impl Clone for AggregateView
Source§fn clone(&self) -> AggregateView
fn clone(&self) -> AggregateView
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 AggregateView
impl Debug for AggregateView
impl Eq for AggregateView
Source§impl PartialEq for AggregateView
impl PartialEq for AggregateView
Source§fn eq(&self, other: &AggregateView) -> bool
fn eq(&self, other: &AggregateView) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AggregateView
Auto Trait Implementations§
impl Freeze for AggregateView
impl RefUnwindSafe for AggregateView
impl Send for AggregateView
impl Sync for AggregateView
impl Unpin for AggregateView
impl UnsafeUnpin for AggregateView
impl UnwindSafe for AggregateView
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<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> 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