Enum sui_sdk_types::types::Argument
source · pub enum Argument {
Gas,
Input(u16),
Result(u16),
NestedResult(u16, u16),
}
Expand description
An argument to a programmable transaction command
Variants§
Gas
The gas coin. The gas coin can only be used by-ref, except for with
TransferObjects
, which can use it by-value.
Input(u16)
One of the input objects or primitive values (from
ProgrammableTransaction
inputs)
Result(u16)
The result of another command (from ProgrammableTransaction
commands)
NestedResult(u16, u16)
Like a Result
but it accesses a nested result. Currently, the only usage
of this is to access a value from a Move call with multiple return values.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Argument
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Argument
Available on crate feature
serde
only.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 JsonSchema for Argument
Available on crate feature serde
only.
impl JsonSchema for Argument
Available on crate feature
serde
only.source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl Copy for Argument
impl Eq for Argument
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)