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>,
pub binding: Option<[u8; 32]>,
}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).
binding: Option<[u8; 32]>The Community a marked edition binds itself to (CORD-02), or None for an unmarked
edition, whose hash covers no signer.
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, every author ranked alike: right
wherever one author writes the whole entity (an owner-only document, a creator’s own registry).
Sourcepub fn to_fold_edition_ranked(&self, rank: u32) -> Edition
pub fn to_fold_edition_ranked(&self, rank: u32) -> Edition
As Self::to_fold_edition, carrying the author’s authority rank for fork tiebreaks.
Trait Implementations§
Source§impl Clone for ParsedEdition
impl Clone for ParsedEdition
Auto Trait Implementations§
impl Forget for ParsedEdition
impl Freeze for ParsedEdition
impl Move 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