pub struct KeyEvent {
pub prefix: IdentifierPrefix,
pub sn: u64,
pub event_data: EventData,
}Fields§
§prefix: IdentifierPrefix§sn: u64§event_data: EventDataImplementations§
source§impl KeyEvent
impl KeyEvent
pub fn new(prefix: IdentifierPrefix, sn: u64, event_data: EventData) -> Self
pub fn to_message( self, format: SerializationFormats, derivation: HashFunction, ) -> Result<KeriEvent<KeyEvent>, Error>
source§impl KeyEvent
impl KeyEvent
pub fn get_sn(&self) -> u64
pub fn get_prefix(&self) -> IdentifierPrefix
pub fn get_event_data(&self) -> EventData
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyEvent
impl<'de> Deserialize<'de> for KeyEvent
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
source§impl EventSemantics for KeyEvent
impl EventSemantics for KeyEvent
fn apply_to(&self, state: IdentifierState) -> Result<IdentifierState, Error>
source§impl Typeable for KeyEvent
impl Typeable for KeyEvent
type TypeTag = EventTypeTag
fn get_type(&self) -> EventTypeTag
impl StructuralPartialEq for KeyEvent
Auto Trait Implementations§
impl Freeze for KeyEvent
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)