pub struct Input {Show 22 fields
pub tx_id: Hash,
pub tx_status: TransactionStatus,
pub tx_type: TransactionType,
pub block_height: UInt,
pub input_type: InputType,
pub utxo_id: Option<Hash>,
pub owner: Option<Address>,
pub amount: Option<UInt>,
pub asset_id: Option<Hash>,
pub tx_pointer_block_height: Option<UInt>,
pub tx_pointer_tx_index: Option<UInt>,
pub witness_index: Option<UInt>,
pub predicate_gas_used: Option<UInt>,
pub predicate: Option<Data>,
pub predicate_data: Option<Data>,
pub balance_root: Option<Hash>,
pub state_root: Option<Hash>,
pub contract: Option<FixedSizeData<32>>,
pub sender: Option<Address>,
pub recipient: Option<Address>,
pub nonce: Option<Data>,
pub data: Option<Data>,
}
Expand description
An object representing all possible types of inputs. InputCoin, InputContract, InputMessage
Fields§
§tx_id: Hash
§tx_status: TransactionStatus
§tx_type: TransactionType
§block_height: UInt
§input_type: InputType
§utxo_id: Option<Hash>
§owner: Option<Address>
§amount: Option<UInt>
§asset_id: Option<Hash>
§tx_pointer_block_height: Option<UInt>
§tx_pointer_tx_index: Option<UInt>
§witness_index: Option<UInt>
§predicate_gas_used: Option<UInt>
§predicate: Option<Data>
§predicate_data: Option<Data>
§balance_root: Option<Hash>
§state_root: Option<Hash>
§contract: Option<FixedSizeData<32>>
§sender: Option<Address>
§recipient: Option<Address>
§nonce: Option<Data>
§data: Option<Data>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Input
impl<'de> Deserialize<'de> for Input
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
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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