pub struct BinaryOutcome {
pub contract_version: String,
pub class: BinaryOutcomeClass,
pub invariant_id: String,
pub proof_marker: String,
pub next_action: String,
}Fields§
§contract_version: String§class: BinaryOutcomeClass§invariant_id: String§proof_marker: String§next_action: StringImplementations§
Source§impl BinaryOutcome
impl BinaryOutcome
pub fn new( class: BinaryOutcomeClass, invariant_id: impl Into<String>, proof_marker: impl Into<String>, next_action: impl Into<String>, ) -> Result<Self, BinaryOutcomeError>
pub fn ok( invariant_id: impl Into<String>, proof_marker: impl Into<String>, next_action: impl Into<String>, ) -> Result<Self, BinaryOutcomeError>
pub fn recoverable( invariant_id: impl Into<String>, proof_marker: impl Into<String>, next_action: impl Into<String>, ) -> Result<Self, BinaryOutcomeError>
pub fn blocked( invariant_id: impl Into<String>, proof_marker: impl Into<String>, next_action: impl Into<String>, ) -> Result<Self, BinaryOutcomeError>
pub fn operator( invariant_id: impl Into<String>, proof_marker: impl Into<String>, next_action: impl Into<String>, ) -> Result<Self, BinaryOutcomeError>
pub fn log_fields(&self) -> String
Trait Implementations§
Source§impl Clone for BinaryOutcome
impl Clone for BinaryOutcome
Source§fn clone(&self) -> BinaryOutcome
fn clone(&self) -> BinaryOutcome
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 moreSource§impl Debug for BinaryOutcome
impl Debug for BinaryOutcome
Source§impl<'de> Deserialize<'de> for BinaryOutcome
impl<'de> Deserialize<'de> for BinaryOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BinaryOutcome
Source§impl PartialEq for BinaryOutcome
impl PartialEq for BinaryOutcome
Source§fn eq(&self, other: &BinaryOutcome) -> bool
fn eq(&self, other: &BinaryOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BinaryOutcome
impl Serialize for BinaryOutcome
impl StructuralPartialEq for BinaryOutcome
Auto Trait Implementations§
impl Freeze for BinaryOutcome
impl RefUnwindSafe for BinaryOutcome
impl Send for BinaryOutcome
impl Sync for BinaryOutcome
impl Unpin for BinaryOutcome
impl UnsafeUnpin for BinaryOutcome
impl UnwindSafe for BinaryOutcome
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