pub struct CreateRsa2048ChallengeAction {
pub public_key: PublicKey,
pub challenge_key: PublicKey,
pub args: Vec<u8>,
}Fields§
§public_key: PublicKeyreal miner request to create rsa2048 challenge Public key used to sign this rsa keys action.
challenge_key: PublicKeyChallenge key used to bind ValidatorPower
args: Vec<u8>attach args such as Miner id, sequence number,power,etc.
Trait Implementations§
source§impl BorshDeserialize for CreateRsa2048ChallengeAction
impl BorshDeserialize for CreateRsa2048ChallengeAction
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl Clone for CreateRsa2048ChallengeAction
impl Clone for CreateRsa2048ChallengeAction
source§fn clone(&self) -> CreateRsa2048ChallengeAction
fn clone(&self) -> CreateRsa2048ChallengeAction
Returns a copy 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 CreateRsa2048ChallengeAction
impl Debug for CreateRsa2048ChallengeAction
source§impl<'de> Deserialize<'de> for CreateRsa2048ChallengeAction
impl<'de> Deserialize<'de> for CreateRsa2048ChallengeAction
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 From<CreateRsa2048ChallengeAction> for Action
impl From<CreateRsa2048ChallengeAction> for Action
source§fn from(create_rsa2048_challenge_action: CreateRsa2048ChallengeAction) -> Self
fn from(create_rsa2048_challenge_action: CreateRsa2048ChallengeAction) -> Self
Converts to this type from the input type.
source§impl PartialEq for CreateRsa2048ChallengeAction
impl PartialEq for CreateRsa2048ChallengeAction
source§fn eq(&self, other: &CreateRsa2048ChallengeAction) -> bool
fn eq(&self, other: &CreateRsa2048ChallengeAction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for CreateRsa2048ChallengeAction
impl StructuralPartialEq for CreateRsa2048ChallengeAction
Auto Trait Implementations§
impl Freeze for CreateRsa2048ChallengeAction
impl RefUnwindSafe for CreateRsa2048ChallengeAction
impl Send for CreateRsa2048ChallengeAction
impl Sync for CreateRsa2048ChallengeAction
impl Unpin for CreateRsa2048ChallengeAction
impl UnwindSafe for CreateRsa2048ChallengeAction
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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.