pub struct ParsedEdition {
pub author: PublicKey,
pub vsk: String,
pub entity_id: [u8; 32],
pub version: u64,
pub prev_hash: Option<[u8; 32]>,
pub content: String,
pub self_hash: [u8; 32],
pub created_at: u64,
pub inner_id: [u8; 32],
pub authority: Option<AuthorityCitation>,
}Expand description
A signature-verified, parsed edition.
Fields§
The real npub that signed (and is thus accountable for) this edition.
vsk: String§entity_id: [u8; 32]§version: u64§prev_hash: Option<[u8; 32]>§content: String§self_hash: [u8; 32]version::edition_hash of this edition — what the next edition’s prev_hash must cite.
created_at: u64§inner_id: [u8; 32]The pinned authority proof, if the actor cited one. None when the OWNER signs (supreme)
or a non-authority edition carries no citation. Verified separately against the roster (#3c).
Implementations§
Source§impl ParsedEdition
impl ParsedEdition
Sourcepub fn to_fold_edition(&self) -> Edition
pub fn to_fold_edition(&self) -> Edition
The version::Edition view used by version::fold.
Trait Implementations§
Source§impl Clone for ParsedEdition
impl Clone for ParsedEdition
Source§fn clone(&self) -> ParsedEdition
fn clone(&self) -> ParsedEdition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedEdition
impl RefUnwindSafe for ParsedEdition
impl Send for ParsedEdition
impl Sync for ParsedEdition
impl Unpin for ParsedEdition
impl UnsafeUnpin for ParsedEdition
impl UnwindSafe for ParsedEdition
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