pub struct RTransaction {Show 16 fields
pub hash: H256,
pub size: u64,
pub version: u8,
pub nonce: u64,
pub sender: String,
pub sys_fee: String,
pub net_fee: String,
pub valid_until_block: u64,
pub signers: Vec<RTransactionSigner>,
pub attributes: Vec<TransactionAttributeEnum>,
pub script: String,
pub witnesses: Vec<NeoWitness>,
pub block_hash: H256,
pub confirmations: i32,
pub block_time: i64,
pub vmstate: VMState,
}
Fields§
§hash: H256
§size: u64
§version: u8
§nonce: u64
§sender: String
§sys_fee: String
§net_fee: String
§valid_until_block: u64
§signers: Vec<RTransactionSigner>
§attributes: Vec<TransactionAttributeEnum>
§script: String
§witnesses: Vec<NeoWitness>
§block_hash: H256
§confirmations: i32
§block_time: i64
§vmstate: VMState
Implementations§
Source§impl RTransaction
impl RTransaction
pub fn hash(&self) -> &H256
pub fn size(&self) -> &u64
pub fn version(&self) -> &u8
pub fn nonce(&self) -> &u64
pub fn sender(&self) -> &String
pub fn sys_fee(&self) -> &String
pub fn net_fee(&self) -> &String
pub fn valid_until_block(&self) -> &u64
pub fn signers(&self) -> &Vec<RTransactionSigner>
pub fn attributes(&self) -> &Vec<TransactionAttributeEnum>
pub fn script(&self) -> &String
pub fn witnesses(&self) -> &Vec<NeoWitness>
pub fn block_hash(&self) -> &H256
pub fn confirmations(&self) -> &i32
pub fn block_time(&self) -> &i64
pub fn vmstate(&self) -> &VMState
Source§impl RTransaction
impl RTransaction
pub fn set_hash(&mut self, val: H256) -> &mut Self
pub fn set_size(&mut self, val: u64) -> &mut Self
pub fn set_version(&mut self, val: u8) -> &mut Self
pub fn set_nonce(&mut self, val: u64) -> &mut Self
pub fn set_sender(&mut self, val: String) -> &mut Self
pub fn set_sys_fee(&mut self, val: String) -> &mut Self
pub fn set_net_fee(&mut self, val: String) -> &mut Self
pub fn set_valid_until_block(&mut self, val: u64) -> &mut Self
pub fn set_signers(&mut self, val: Vec<RTransactionSigner>) -> &mut Self
pub fn set_attributes( &mut self, val: Vec<TransactionAttributeEnum>, ) -> &mut Self
pub fn set_script(&mut self, val: String) -> &mut Self
pub fn set_witnesses(&mut self, val: Vec<NeoWitness>) -> &mut Self
pub fn set_block_hash(&mut self, val: H256) -> &mut Self
pub fn set_confirmations(&mut self, val: i32) -> &mut Self
pub fn set_block_time(&mut self, val: i64) -> &mut Self
pub fn set_vmstate(&mut self, val: VMState) -> &mut Self
Source§impl RTransaction
impl RTransaction
pub fn new( hash: H256, size: u64, version: u8, nonce: u64, sender: String, sys_fee: String, net_fee: String, valid_until_block: u64, signers: Vec<RTransactionSigner>, attributes: Vec<TransactionAttributeEnum>, script: String, witnesses: Vec<NeoWitness>, ) -> Self
pub fn get_first_signer(&self) -> Result<&RTransactionSigner, TypeError>
pub fn get_signer(&self, index: usize) -> Result<&RTransactionSigner, TypeError>
pub fn get_first_attribute( &self, ) -> Result<&TransactionAttributeEnum, TypeError>
pub fn get_attribute( &self, index: usize, ) -> Result<&TransactionAttributeEnum, TypeError>
Trait Implementations§
Source§impl Clone for RTransaction
impl Clone for RTransaction
Source§fn clone(&self) -> RTransaction
fn clone(&self) -> RTransaction
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RTransaction
impl Debug for RTransaction
Source§impl<'de> Deserialize<'de> for RTransaction
impl<'de> Deserialize<'de> for RTransaction
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 RTransaction
impl PartialEq for RTransaction
Source§impl Serialize for RTransaction
impl Serialize for RTransaction
impl Eq for RTransaction
Auto Trait Implementations§
impl Freeze for RTransaction
impl RefUnwindSafe for RTransaction
impl Send for RTransaction
impl Sync for RTransaction
impl Unpin for RTransaction
impl UnwindSafe for RTransaction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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