pub struct Transaction {Show 19 fields
pub id: String,
pub height: u64,
pub block_id: String,
pub type: u8,
pub timestamp: u64,
pub sender_public_key: String,
pub recipient_public_key: String,
pub sender_id: String,
pub recipient_id: String,
pub amount: String,
pub fee: String,
pub signature: String,
pub signatures: Option<Vec<Signature>>,
pub asset: Asset,
pub confirmations: u64,
pub sender_second_public_key: Option<String>,
pub sign_signature: Option<String>,
pub relays: Option<u16>,
pub ready: Option<bool>,
}
Fields§
§id: String
§height: u64
§block_id: String
§type: u8
§timestamp: u64
§sender_public_key: String
§recipient_public_key: String
§sender_id: String
§recipient_id: String
§amount: String
§fee: String
§signature: String
§signatures: Option<Vec<Signature>>
§asset: Asset
§confirmations: u64
§sender_second_public_key: Option<String>
§sign_signature: Option<String>
§relays: Option<u16>
§ready: Option<bool>
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Transaction
impl Debug for Transaction
Source§impl Default for Transaction
impl Default for Transaction
Source§fn default() -> Transaction
fn default() -> Transaction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Transactionwhere
Transaction: Default,
impl<'de> Deserialize<'de> for Transactionwhere
Transaction: Default,
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 Transaction
impl PartialEq for Transaction
impl StructuralPartialEq for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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<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 more