pub struct UserFacingOutcome {
pub contract_version: String,
pub outcome: UserFacingOutcomeKind,
pub class: BinaryOutcomeClass,
pub next_action: String,
pub unblocker: Option<String>,
}Fields§
§contract_version: String§outcome: UserFacingOutcomeKind§class: BinaryOutcomeClass§next_action: String§unblocker: Option<String>Implementations§
Source§impl UserFacingOutcome
impl UserFacingOutcome
pub fn new(outcome: UserFacingOutcomeKind) -> Result<Self, BinaryOutcomeError>
pub fn with_unblocker( outcome: UserFacingOutcomeKind, unblocker: impl Into<String>, ) -> Result<Self, BinaryOutcomeError>
pub fn log_fields(&self) -> String
Trait Implementations§
Source§impl Clone for UserFacingOutcome
impl Clone for UserFacingOutcome
Source§fn clone(&self) -> UserFacingOutcome
fn clone(&self) -> UserFacingOutcome
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 UserFacingOutcome
impl Debug for UserFacingOutcome
Source§impl<'de> Deserialize<'de> for UserFacingOutcome
impl<'de> Deserialize<'de> for UserFacingOutcome
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 UserFacingOutcome
Source§impl PartialEq for UserFacingOutcome
impl PartialEq for UserFacingOutcome
Source§fn eq(&self, other: &UserFacingOutcome) -> bool
fn eq(&self, other: &UserFacingOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserFacingOutcome
impl Serialize for UserFacingOutcome
impl StructuralPartialEq for UserFacingOutcome
Auto Trait Implementations§
impl Freeze for UserFacingOutcome
impl RefUnwindSafe for UserFacingOutcome
impl Send for UserFacingOutcome
impl Sync for UserFacingOutcome
impl Unpin for UserFacingOutcome
impl UnsafeUnpin for UserFacingOutcome
impl UnwindSafe for UserFacingOutcome
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