pub enum MootholdEvent {
Founded {
moothold_id: MootholdId,
name: String,
founder: [u8; 32],
initial_moot: MootId,
initial_terms: MemberTerms,
composition: CompositionPolicy,
at_ms: u64,
},
MootAdmitted {
previous: [u8; 32],
moot: MootId,
terms: MemberTerms,
at_ms: u64,
},
MootRemoved {
previous: [u8; 32],
moot: MootId,
at_ms: u64,
},
CompositionChanged {
previous: [u8; 32],
composition: CompositionPolicy,
at_ms: u64,
},
}Expand description
Founder-signed changes to one Moothold aggregate.
Variants§
Founded
MootAdmitted
MootRemoved
CompositionChanged
Trait Implementations§
Source§impl Clone for MootholdEvent
impl Clone for MootholdEvent
Source§impl Debug for MootholdEvent
impl Debug for MootholdEvent
Source§impl<'de> Deserialize<'de> for MootholdEvent
impl<'de> Deserialize<'de> for MootholdEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MootholdEvent
Source§impl PartialEq for MootholdEvent
impl PartialEq for MootholdEvent
Source§impl Serialize for MootholdEvent
impl Serialize for MootholdEvent
impl StructuralPartialEq for MootholdEvent
Auto Trait Implementations§
impl Freeze for MootholdEvent
impl RefUnwindSafe for MootholdEvent
impl Send for MootholdEvent
impl Sync for MootholdEvent
impl Unpin for MootholdEvent
impl UnsafeUnpin for MootholdEvent
impl UnwindSafe for MootholdEvent
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> Extensions for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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 moreSource§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage