Enum fuels_types::input::Input
source · pub enum Input {
ResourceSigned {
resource: CoinType,
witness_index: u8,
},
ResourcePredicate {
resource: CoinType,
code: Vec<u8>,
data: UnresolvedBytes,
},
Contract {
utxo_id: UtxoId,
balance_root: Bytes32,
state_root: Bytes32,
tx_pointer: TxPointer,
contract_id: ContractId,
},
}
Variants§
Implementations§
source§impl Input
impl Input
pub const fn resource_signed(resource: CoinType, witness_index: u8) -> Self
pub const fn resource_predicate( resource: CoinType, code: Vec<u8>, data: UnresolvedBytes ) -> Self
pub fn amount(&self) -> Option<u64>
pub const fn contract( utxo_id: UtxoId, balance_root: Bytes32, state_root: Bytes32, tx_pointer: TxPointer, contract_id: ContractId ) -> Self
Trait Implementations§
source§impl PartialEq<Input> for Input
impl PartialEq<Input> for Input
impl Eq for Input
impl StructuralEq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.