Struct avalanche_types::avax::Utxo
source · [−]pub struct Utxo {
pub utxo_id: UtxoId,
pub asset_id: Id,
pub transfer_output: Option<TransferOutput>,
pub stakeable_lock_out: Option<StakeableLockOut>,
}
Expand description
Do not parse the internal tests. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/vms/components/avax#UTXO TODO: implement ordering?
Fields
utxo_id: UtxoId
asset_id: Id
transfer_output: Option<TransferOutput>
AvalancheGo loads “avax.UTXO” object from the db and defines the “out” field as an interface “Out verify.State”.
The underlying type is one of the following:
“*secp256k1fx.TransferOutput” ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/vms/secp256k1fx#TransferOutput
“*platformvm.StakeableLockOut” which embeds “*secp256k1fx.TransferOutput” ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/vms/platformvm#StakeableLockOut
MUST: only one of the following can be “Some”.
stakeable_lock_out: Option<StakeableLockOut>
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Utxo
impl<'de> Deserialize<'de> for Utxo
sourcefn 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 Utxo
impl StructuralEq for Utxo
impl StructuralPartialEq for Utxo
Auto Trait Implementations
impl RefUnwindSafe for Utxo
impl Send for Utxo
impl Sync for Utxo
impl Unpin for Utxo
impl UnwindSafe for Utxo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.