pub struct AggregateRef {
pub kind: String,
pub id: Id128,
}Expand description
A reference to the logical aggregate that an event belongs to.
Used to thread related events (e.g. proposal lifecycle events) into a
single auditable chain identified by kind and id.
Fields§
§kind: StringThe aggregate type string (e.g. "proposal").
id: Id128The aggregate instance identifier.
Trait Implementations§
Source§impl Clone for AggregateRef
impl Clone for AggregateRef
Source§fn clone(&self) -> AggregateRef
fn clone(&self) -> AggregateRef
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 moreSource§impl Debug for AggregateRef
impl Debug for AggregateRef
impl Eq for AggregateRef
Source§impl PartialEq for AggregateRef
impl PartialEq for AggregateRef
Source§fn eq(&self, other: &AggregateRef) -> bool
fn eq(&self, other: &AggregateRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AggregateRef
Auto Trait Implementations§
impl Freeze for AggregateRef
impl RefUnwindSafe for AggregateRef
impl Send for AggregateRef
impl Sync for AggregateRef
impl Unpin for AggregateRef
impl UnsafeUnpin for AggregateRef
impl UnwindSafe for AggregateRef
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