pub struct KeyEpoch {
pub author_id: AuthorId,
pub epoch: u32,
pub public_key: [u8; 32],
pub created_at_version: u64,
pub status: KeyStatus,
}Expand description
One epoch for one author. Epochs are append-only per author.
Fields§
Which author this epoch belongs to.
epoch: u32Monotonic per-author epoch number, starting at 0.
public_key: [u8; 32]32-byte Ed25519 verifying key for this epoch.
created_at_version: u64First version number at which this epoch is valid.
status: KeyStatusCurrent lifecycle state.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyEpoch
impl RefUnwindSafe for KeyEpoch
impl Send for KeyEpoch
impl Sync for KeyEpoch
impl Unpin for KeyEpoch
impl UnsafeUnpin for KeyEpoch
impl UnwindSafe for KeyEpoch
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§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 more