pub struct Action {
perform: String,
expect: String,
tpv: bool,
}Expand description
Each Action struct is a single operation to perform, with an expected result, and an optional Two-Party Verification flag
Fields§
§perform: StringWhat action the operator is to perform
expect: StringWhat operator is to expect after performing the action
tpv: boolIs two party verification (TPV) required for this step?
Implementations§
Source§impl Action
Since Action structs are created directly in a function outside the struct at read-time, we just need “get” functions
impl Action
Since Action structs are created directly in a function outside the struct at read-time, we just need “get” functions
Sourcepub fn get_perform(&self) -> &String
pub fn get_perform(&self) -> &String
Return reference to the “Action to Perform” string
Sourcepub fn get_expect(&self) -> &String
pub fn get_expect(&self) -> &String
Return reference to the “Expected Outcome” string
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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