pub struct DelegateData {
pub validator_pubkey: [u8; 32],
pub amount: Balance,
}Expand description
Data for Delegate operation
Fields§
§validator_pubkey: [u8; 32]Validator public key to delegate to (hex)
amount: BalanceAmount to delegate
Trait Implementations§
Source§impl Clone for DelegateData
impl Clone for DelegateData
Source§fn clone(&self) -> DelegateData
fn clone(&self) -> DelegateData
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 DelegateData
impl Debug for DelegateData
Source§impl<'de> Deserialize<'de> for DelegateData
impl<'de> Deserialize<'de> for DelegateData
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 DelegateData
impl PartialEq for DelegateData
Source§fn eq(&self, other: &DelegateData) -> bool
fn eq(&self, other: &DelegateData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DelegateData
impl Serialize for DelegateData
impl Eq for DelegateData
impl StructuralPartialEq for DelegateData
Auto Trait Implementations§
impl Freeze for DelegateData
impl RefUnwindSafe for DelegateData
impl Send for DelegateData
impl Sync for DelegateData
impl Unpin for DelegateData
impl UnsafeUnpin for DelegateData
impl UnwindSafe for DelegateData
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