pub enum VerifiedValidatorMessage {
RequestBatchValidation(VerifiedData<ValidatorRequest>),
ApproveBatch(VerifiedData<ValidatorReply>),
}Variants§
RequestBatchValidation(VerifiedData<ValidatorRequest>)
ApproveBatch(VerifiedData<ValidatorReply>)
Implementations§
Source§impl VerifiedValidatorMessage
impl VerifiedValidatorMessage
Sourcepub fn unwrap_request_batch_validation(self) -> VerifiedData<ValidatorRequest>
pub fn unwrap_request_batch_validation(self) -> VerifiedData<ValidatorRequest>
Unwraps this value to the VerifiedValidatorMessage::RequestBatchValidation variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_approve_batch(self) -> VerifiedData<ValidatorReply>
pub fn unwrap_approve_batch(self) -> VerifiedData<ValidatorReply>
Unwraps this value to the VerifiedValidatorMessage::ApproveBatch variant.
Panics if this value is of any other type.
Trait Implementations§
Source§impl Clone for VerifiedValidatorMessage
impl Clone for VerifiedValidatorMessage
Source§fn clone(&self) -> VerifiedValidatorMessage
fn clone(&self) -> VerifiedValidatorMessage
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 VerifiedValidatorMessage
impl Debug for VerifiedValidatorMessage
impl Eq for VerifiedValidatorMessage
Source§impl From<VerifiedData<ValidatorMessage<BatchCommitmentValidationReply>>> for VerifiedValidatorMessage
impl From<VerifiedData<ValidatorMessage<BatchCommitmentValidationReply>>> for VerifiedValidatorMessage
Source§fn from(value: VerifiedData<ValidatorReply>) -> Self
fn from(value: VerifiedData<ValidatorReply>) -> Self
Converts to this type from the input type.
Source§impl From<VerifiedData<ValidatorMessage<BatchCommitmentValidationRequest>>> for VerifiedValidatorMessage
impl From<VerifiedData<ValidatorMessage<BatchCommitmentValidationRequest>>> for VerifiedValidatorMessage
Source§fn from(value: VerifiedData<ValidatorRequest>) -> Self
fn from(value: VerifiedData<ValidatorRequest>) -> Self
Converts to this type from the input type.
Source§impl Hash for VerifiedValidatorMessage
impl Hash for VerifiedValidatorMessage
Source§impl PartialEq for VerifiedValidatorMessage
impl PartialEq for VerifiedValidatorMessage
Source§fn eq(&self, other: &VerifiedValidatorMessage) -> bool
fn eq(&self, other: &VerifiedValidatorMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VerifiedValidatorMessage
Auto Trait Implementations§
impl Freeze for VerifiedValidatorMessage
impl RefUnwindSafe for VerifiedValidatorMessage
impl Send for VerifiedValidatorMessage
impl Sync for VerifiedValidatorMessage
impl Unpin for VerifiedValidatorMessage
impl UnsafeUnpin for VerifiedValidatorMessage
impl UnwindSafe for VerifiedValidatorMessage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreSource§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
impl<T> JsonSchemaMaybe for T
impl<T> MaybeDebug for Twhere
T: Debug,
impl<T> MaybeRefUnwindSafe for Twhere
T: RefUnwindSafe,
Source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.