Struct primitives::validator::ApproveState
source · Expand description
Generated by the follower when a NewState
is generated by the leader and the state is signable and correct.
Fields
state_root: String
signature: String
is_healthy: bool
Trait Implementations
sourceimpl Clone for ApproveState
impl Clone for ApproveState
sourcefn clone(&self) -> ApproveState
fn clone(&self) -> ApproveState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ApproveState
impl Debug for ApproveState
sourceimpl<'de> Deserialize<'de> for ApproveState
impl<'de> Deserialize<'de> for ApproveState
sourcefn 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
sourceimpl From<ApproveState> for MessageTypes
impl From<ApproveState> for MessageTypes
sourcefn from(approve_state: ApproveState) -> Self
fn from(approve_state: ApproveState) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ApproveState> for ApproveState
impl PartialEq<ApproveState> for ApproveState
sourcefn eq(&self, other: &ApproveState) -> bool
fn eq(&self, other: &ApproveState) -> bool
sourceimpl Serialize for ApproveState
impl Serialize for ApproveState
sourceimpl TryFrom<MessageTypes> for ApproveState
impl TryFrom<MessageTypes> for ApproveState
type Error = MessageError<ApproveState>
type Error = MessageError<ApproveState>
The type returned in the event of a conversion error.
sourcefn try_from(value: MessageTypes) -> Result<Self, Self::Error>
fn try_from(value: MessageTypes) -> Result<Self, Self::Error>
Performs the conversion.
impl Eq for ApproveState
impl StructuralEq for ApproveState
impl StructuralPartialEq for ApproveState
impl Type for ApproveState
Auto Trait Implementations
impl RefUnwindSafe for ApproveState
impl Send for ApproveState
impl Sync for ApproveState
impl Unpin for ApproveState
impl UnwindSafe for ApproveState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more