pub struct StepperOutcome {
pub ret_code: i32,
pub error_message: String,
pub data: Vec<u8>,
pub next_peer_pks: Vec<String>,
}
Expand description
Describes a result returned at the end of the stepper execution.
Fields§
§ret_code: i32
A return code, where STEPPER_SUCCESS means success.
error_message: String
Contains error message if ret_code != STEPPER_SUCCESS.
data: Vec<u8>
Contains script data that should be preserved in an executor of this stepper regardless of ret_code value.
next_peer_pks: Vec<String>
Public keys of peers that should receive data.
Implementations§
Trait Implementations§
Source§impl Clone for StepperOutcome
impl Clone for StepperOutcome
Source§fn clone(&self) -> StepperOutcome
fn clone(&self) -> StepperOutcome
Returns a duplicate of the value. Read more
1.0.0 · 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 StepperOutcome
impl Debug for StepperOutcome
Source§impl<'de> Deserialize<'de> for StepperOutcome
impl<'de> Deserialize<'de> for StepperOutcome
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
Source§impl PartialEq for StepperOutcome
impl PartialEq for StepperOutcome
Source§impl Serialize for StepperOutcome
impl Serialize for StepperOutcome
impl Eq for StepperOutcome
impl StructuralPartialEq for StepperOutcome
Auto Trait Implementations§
impl Freeze for StepperOutcome
impl RefUnwindSafe for StepperOutcome
impl Send for StepperOutcome
impl Sync for StepperOutcome
impl Unpin for StepperOutcome
impl UnwindSafe for StepperOutcome
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