pub struct PreparedPublication { /* private fields */ }Expand description
Owned preparation for an explicit local prepare/sign/send workflow. Preparing or signing never refreshes identity, contacts Weft, or modifies an original.
Implementations§
Source§impl PreparedPublication
impl PreparedPublication
pub fn new( opening: PublishContentClientFrame, originals: PublicationOriginals, spool_genesis: ContentHash, ) -> Result<Self, Error>
pub fn opening(&self) -> &PublishContentClientFrame
pub fn originals(&self) -> &PublicationOriginals
pub fn plan(&self) -> &PublicationAcceptancePlan
Sourcepub fn acceptance(
&self,
author: SourceAuthor,
publisher: [u8; 32],
kinds: BTreeSet<BoundaryOriginalKind>,
) -> Result<OriginalBoundaryAcceptance, Error>
pub fn acceptance( &self, author: SourceAuthor, publisher: [u8; 32], kinds: BTreeSet<BoundaryOriginalKind>, ) -> Result<OriginalBoundaryAcceptance, Error>
Build an unsigned exact intent for an external signer. The caller chooses the accepting authority explicitly; this is no claim of current validity.
Sourcepub fn sign_acceptance(
&mut self,
author: SourceAuthor,
kinds: BTreeSet<BoundaryOriginalKind>,
signer: &impl Signer,
) -> Result<ContentHash, Error>
pub fn sign_acceptance( &mut self, author: SourceAuthor, kinds: BTreeSet<BoundaryOriginalKind>, signer: &impl Signer, ) -> Result<ContentHash, Error>
Explicitly sign a separate acceptance. Original signatures and cached author envelopes remain byte-for-byte unchanged, including revoked work.
Sourcepub fn accept(
&mut self,
signed: SignedBoundaryAcceptance,
) -> Result<ContentHash, Error>
pub fn accept( &mut self, signed: SignedBoundaryAcceptance, ) -> Result<ContentHash, Error>
Attach a signature produced by an external signer. Reject a changed intent, extra originals, ambiguous selection, or exceeding carrier bounds.
pub fn into_parts( self, ) -> (PublishContentClientFrame, PublicationOriginals, PublicationAcceptancePlan)
Auto Trait Implementations§
impl Freeze for PreparedPublication
impl RefUnwindSafe for PreparedPublication
impl Send for PreparedPublication
impl Sync for PreparedPublication
impl Unpin for PreparedPublication
impl UnsafeUnpin for PreparedPublication
impl UnwindSafe for PreparedPublication
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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