pub struct Collection {
pub token: KindToken,
pub template: Template,
pub cardinality: Option<u64>,
pub ttl: Duration,
pub class: Class,
}Expand description
One collection of a revision: a state or @state resource whose
horizon is above 0.
Fields§
§token: KindToken§template: Template§cardinality: Option<u64>Its cardinality when its template has a parameter; None for one
member.
ttl: DurationIts horizon, freshness.ttl_s.
class: ClassIts class, which of its owner’s owner heartbeats covers it
(freshness.v2 §2.4).
Implementations§
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§impl Debug for Collection
impl Debug for Collection
impl Eq for Collection
Source§impl PartialEq for Collection
impl PartialEq for Collection
impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl Forget for Collection
impl Freeze for Collection
impl Move for Collection
impl RefUnwindSafe for Collection
impl Send for Collectionwhere
RawVecInner: Send,
impl Sync for Collectionwhere
RawVecInner: Sync,
impl Unpin for Collection
impl UnsafeUnpin for Collectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Segment>: UnsafeUnpin,
impl UnwindSafe for Collectionwhere
RawVecInner: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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