pub struct TransferTransaction {
pub tx_hash: [u8; 32],
pub nonce: u64,
pub from: String,
pub to: String,
pub token: TokenType,
pub amount: u64,
pub fee: u64,
pub signature: Vec<u8>,
pub timestamp: u64,
}Fields§
§tx_hash: [u8; 32]§nonce: u64§from: String§to: String§token: TokenType§amount: u64§fee: u64§signature: Vec<u8>§timestamp: u64Trait Implementations§
Source§impl Clone for TransferTransaction
impl Clone for TransferTransaction
Source§fn clone(&self) -> TransferTransaction
fn clone(&self) -> TransferTransaction
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 TransferTransaction
impl Debug for TransferTransaction
Source§impl<'de> Deserialize<'de> for TransferTransaction
impl<'de> Deserialize<'de> for TransferTransaction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransferTransaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransferTransaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TransferTransaction
Source§impl PartialEq for TransferTransaction
impl PartialEq for TransferTransaction
Source§impl Serialize for TransferTransaction
impl Serialize for TransferTransaction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TransferTransaction
Auto Trait Implementations§
impl Freeze for TransferTransaction
impl RefUnwindSafe for TransferTransaction
impl Send for TransferTransaction
impl Sync for TransferTransaction
impl Unpin for TransferTransaction
impl UnsafeUnpin for TransferTransaction
impl UnwindSafe for TransferTransaction
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.