pub enum PrimaryRole {
Clean,
Redline,
}Expand description
Which serialized candidate is the prepared transaction’s publication:
the clean copy (changes accepted) or the redline (changes tracked).
The role drives the bytes prepare chooses as primary, the digest
it derives, and the serialized-story postcondition it runs: validation
describes the chosen primary, not a reserialized package swapped in at
commit. An unchanged transaction always returns the original source
bytes, regardless of role.
Variants§
Clean
Publish the clean (untracked) candidate. The default — preserves the v1 helper callers, the Python and WASM bindings, and every caller that has not chosen a publication track yet.
Redline
Publish the redline (tracked) candidate. The v1 typed CLI uses it;
prepare_v2 likewise publishes redline, by construction.
Trait Implementations§
Source§impl Clone for PrimaryRole
impl Clone for PrimaryRole
Source§fn clone(&self) -> PrimaryRole
fn clone(&self) -> PrimaryRole
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 moreimpl Copy for PrimaryRole
Source§impl Debug for PrimaryRole
impl Debug for PrimaryRole
Source§impl Default for PrimaryRole
impl Default for PrimaryRole
Source§fn default() -> PrimaryRole
fn default() -> PrimaryRole
Returns the “default value” for a type. Read more
impl Eq for PrimaryRole
Source§impl PartialEq for PrimaryRole
impl PartialEq for PrimaryRole
impl StructuralPartialEq for PrimaryRole
Auto Trait Implementations§
impl Forget for PrimaryRole
impl Freeze for PrimaryRole
impl Move for PrimaryRole
impl RefUnwindSafe for PrimaryRole
impl Send for PrimaryRole
impl Sync for PrimaryRole
impl Unpin for PrimaryRole
impl UnsafeUnpin for PrimaryRole
impl UnwindSafe for PrimaryRole
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.