pub struct ProposalResult {
pub proposal_id: String,
pub results: Vec<ActionResult>,
pub cost: CostSummary,
}Expand description
The complete result of processing a proposal through the runtime.
Fields§
§proposal_id: String§results: Vec<ActionResult>§cost: CostSummaryImplementations§
Source§impl ProposalResult
impl ProposalResult
pub fn all_succeeded(&self) -> bool
pub fn summary(&self) -> HashMap<ActionStatus, usize>
Trait Implementations§
Source§impl Clone for ProposalResult
impl Clone for ProposalResult
Source§fn clone(&self) -> ProposalResult
fn clone(&self) -> ProposalResult
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 ProposalResult
impl Debug for ProposalResult
Source§impl<'de> Deserialize<'de> for ProposalResult
impl<'de> Deserialize<'de> for ProposalResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProposalResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProposalResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProposalResult
impl PartialEq for ProposalResult
Source§fn eq(&self, other: &ProposalResult) -> bool
fn eq(&self, other: &ProposalResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProposalResult
impl Serialize for ProposalResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ProposalResult
Auto Trait Implementations§
impl Freeze for ProposalResult
impl RefUnwindSafe for ProposalResult
impl Send for ProposalResult
impl Sync for ProposalResult
impl Unpin for ProposalResult
impl UnsafeUnpin for ProposalResult
impl UnwindSafe for ProposalResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more