Struct hyperfuel_format::Output
source · pub struct Output {
pub tx_id: Hash,
pub block_height: UInt,
pub output_type: OutputType,
pub to: Option<Address>,
pub amount: Option<UInt>,
pub asset_id: Option<Hash>,
pub input_index: Option<UInt>,
pub balance_root: Option<Hash>,
pub state_root: Option<Hash>,
pub contract: Option<FixedSizeData<32>>,
}Expand description
An object representing all possible types of Outputs. CoinOutput, ContractOutput, ChangeOutput, VariableOutput, ContractCreated
Fields§
§tx_id: Hashtransaction that this out originated from
block_height: UIntblock that the output originated in
output_type: OutputTypeCoinOutput, ContractOutput, ChangeOutput, VariableOutput, or ContractCreated
to: Option<Address>The address the coins were sent to.
amount: Option<UInt>The amount of coins in the output.
asset_id: Option<Hash>The asset id for the coins sent.
input_index: Option<UInt>The index of the input.
balance_root: Option<Hash>The root of amount of coins owned by contract after transaction execution.
state_root: Option<Hash>for ContractedCreated type: The initial state root of contract. for ContractOutput type: The state root of contract after transaction execution.
contract: Option<FixedSizeData<32>>for ContractCreated type: The contract that was created.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
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 Output
impl PartialEq for Output
impl Eq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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