pub enum ScriptArgument {
}Expand description
An argument to a script.
Variant order must match the chain’s ScriptTransactionArgumentVariants for BCS compatibility with the
chain and TS SDK. See: https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/transaction_argument.rs
Variants§
U8(u8)
A u8 value (variant 0).
U64(u64)
A u64 value (variant 1).
U128(u128)
A u128 value (variant 2).
Address(AccountAddress)
An address value (variant 3).
U8Vector(Vec<u8>)
A vector of u8 / bytes (variant 4).
Bool(bool)
A boolean value (variant 5).
U16(u16)
A u16 value (variant 6).
U32(u32)
A u32 value (variant 7).
U256([u8; 32])
A u256 value as 32 bytes (variant 8).
Serialized(Vec<u8>)
Pre-serialized BCS bytes (variant 9). Use for types not directly representable as other variants.
I8(i8)
An i8 value (variant 10).
I16(i16)
An i16 value (variant 11).
I32(i32)
An i32 value (variant 12).
I64(i64)
An i64 value (variant 13).
I128(i128)
An i128 value (variant 14).
I256([u8; 32])
An i256 value as 32 bytes (variant 15).
Trait Implementations§
Source§impl Clone for ScriptArgument
impl Clone for ScriptArgument
Source§fn clone(&self) -> ScriptArgument
fn clone(&self) -> ScriptArgument
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScriptArgument
impl Debug for ScriptArgument
Source§impl<'de> Deserialize<'de> for ScriptArgument
impl<'de> Deserialize<'de> for ScriptArgument
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>,
Source§impl PartialEq for ScriptArgument
impl PartialEq for ScriptArgument
Source§fn eq(&self, other: &ScriptArgument) -> bool
fn eq(&self, other: &ScriptArgument) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ScriptArgument
impl Serialize for ScriptArgument
impl Eq for ScriptArgument
impl StructuralPartialEq for ScriptArgument
Auto Trait Implementations§
impl Freeze for ScriptArgument
impl RefUnwindSafe for ScriptArgument
impl Send for ScriptArgument
impl Sync for ScriptArgument
impl Unpin for ScriptArgument
impl UnsafeUnpin for ScriptArgument
impl UnwindSafe for ScriptArgument
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.