pub struct StakingTxData {
pub operation: StakingOperation,
pub data: Vec<u8>,
}Expand description
Staking transaction data
Fields§
§operation: StakingOperationStaking operation type
data: Vec<u8>Operation-specific data (serialized)
Implementations§
Source§impl StakingTxData
impl StakingTxData
Sourcepub fn new(operation: StakingOperation, data: Vec<u8>) -> Self
pub fn new(operation: StakingOperation, data: Vec<u8>) -> Self
Create a new staking transaction data
Trait Implementations§
Source§impl Clone for StakingTxData
impl Clone for StakingTxData
Source§fn clone(&self) -> StakingTxData
fn clone(&self) -> StakingTxData
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 StakingTxData
impl Debug for StakingTxData
Source§impl<'de> Deserialize<'de> for StakingTxData
impl<'de> Deserialize<'de> for StakingTxData
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 StakingTxData
impl PartialEq for StakingTxData
Source§fn eq(&self, other: &StakingTxData) -> bool
fn eq(&self, other: &StakingTxData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StakingTxData
impl Serialize for StakingTxData
impl Eq for StakingTxData
impl StructuralPartialEq for StakingTxData
Auto Trait Implementations§
impl Freeze for StakingTxData
impl RefUnwindSafe for StakingTxData
impl Send for StakingTxData
impl Sync for StakingTxData
impl Unpin for StakingTxData
impl UnsafeUnpin for StakingTxData
impl UnwindSafe for StakingTxData
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