pub enum KeriEvent {
Icp(IcpEvent),
Rot(RotEvent),
Ixn(IxnEvent),
Dip(DipEvent),
Drt(DrtEvent),
}Expand description
Unified event enum for processing any KERI event type.
Variants§
Icp(IcpEvent)
Inception event
Rot(RotEvent)
Rotation event
Ixn(IxnEvent)
Interaction event
Dip(DipEvent)
Delegated inception event
Drt(DrtEvent)
Delegated rotation event
Implementations§
Source§impl Event
impl Event
Sourcepub fn sequence(&self) -> KeriSequence
pub fn sequence(&self) -> KeriSequence
Get the sequence number of this event.
Sourcepub fn previous(&self) -> Option<&Said>
pub fn previous(&self) -> Option<&Said>
Get the previous event SAID (None for inception/delegated inception).
Sourcepub fn next_commitments(&self) -> Option<&[Said]>
pub fn next_commitments(&self) -> Option<&[Said]>
Get the next key commitments (only for establishment events).
Sourcepub fn delegator(&self) -> Option<&Prefix>
pub fn delegator(&self) -> Option<&Prefix>
Get the delegator AID (only for delegated inception).
Sourcepub fn is_inception(&self) -> bool
pub fn is_inception(&self) -> bool
Check if this is an inception event (including delegated).
Sourcepub fn is_rotation(&self) -> bool
pub fn is_rotation(&self) -> bool
Check if this is a rotation event (including delegated).
Sourcepub fn is_interaction(&self) -> bool
pub fn is_interaction(&self) -> bool
Check if this is an interaction event.
Sourcepub fn is_delegated(&self) -> bool
pub fn is_delegated(&self) -> bool
Check if this is a delegated event.
Sourcepub fn source_seal(&self) -> Option<&SourceSeal>
pub fn source_seal(&self) -> Option<&SourceSeal>
Get the delegate-side source seal (-G back-reference to the delegator’s
anchoring event), if this is a delegated event that has been anchored.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Event, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Event, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Event
Source§impl Serialize for Event
impl Serialize for Event
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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
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§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.