Skip to main content

RehydratedAggregate

Struct RehydratedAggregate 

Source
pub struct RehydratedAggregate<A> {
    pub aggregate: A,
    pub revision: StreamRevision,
}
Expand description

English:
Reconstructed aggregate paired with the history’s final revision. This revision can be used as crate::ExpectedRevision::Revision for a subsequent append.

日本語:
復元した集約と履歴の最終リビジョンです。 このリビジョンは次の追加の crate::ExpectedRevision::Revision として利用できます。

Fields§

§aggregate: A

English:
Aggregate after all selected historical events were applied.

日本語:
選択された履歴イベントをすべて適用した後の集約です。

§revision: StreamRevision

English:
Final revision of the complete input history, including when no tail events remain.

日本語:
後続イベントが残っていない場合も含め、入力された完全な履歴の最終リビジョンです。

Trait Implementations§

Source§

impl<A> Debug for RehydratedAggregate<A>
where A: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<A> Eq for RehydratedAggregate<A>
where A: Eq,

Source§

impl<A> PartialEq for RehydratedAggregate<A>
where A: PartialEq,

Source§

fn eq(&self, other: &RehydratedAggregate<A>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<A> StructuralPartialEq for RehydratedAggregate<A>
where A: PartialEq,

Auto Trait Implementations§

§

impl<A> Freeze for RehydratedAggregate<A>
where A: Freeze,

§

impl<A> RefUnwindSafe for RehydratedAggregate<A>
where A: RefUnwindSafe,

§

impl<A> Send for RehydratedAggregate<A>
where A: Send,

§

impl<A> Sync for RehydratedAggregate<A>
where A: Sync,

§

impl<A> Unpin for RehydratedAggregate<A>
where A: Unpin,

§

impl<A> UnsafeUnpin for RehydratedAggregate<A>
where A: UnsafeUnpin,

§

impl<A> UnwindSafe for RehydratedAggregate<A>
where A: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.