pub enum SuiCommand {
MoveCall(Box<SuiProgrammableMoveCall>),
TransferObjects(Vec<SuiArgument>, SuiArgument),
SplitCoins(SuiArgument, Vec<SuiArgument>),
MergeCoins(SuiArgument, Vec<SuiArgument>),
Publish(Vec<Address>),
Upgrade(Vec<Address>, Address, SuiArgument),
MakeMoveVec(Option<String>, Vec<SuiArgument>),
}Expand description
A single transaction in a programmable transaction block.
Variants§
MoveCall(Box<SuiProgrammableMoveCall>)
A call to either an entry or a public Move function
TransferObjects(Vec<SuiArgument>, SuiArgument)
(Vec<forall T:key+store. T>, address)
It sends n-objects to the specified address. These objects must have store
(public transfer) and either the previous owner must be an address or the object must
be newly created.
SplitCoins(SuiArgument, Vec<SuiArgument>)
(&mut Coin<T>, Vec<u64>) -> Vec<Coin<T>>
It splits off some amounts into a new coins with those amounts
MergeCoins(SuiArgument, Vec<SuiArgument>)
(&mut Coin<T>, Vec<Coin<T>>)
It merges n-coins into the first coin
Publish(Vec<Address>)
Publishes a Move package. It takes the package bytes and a list of the package’s transitive dependencies to link against on-chain.
Upgrade(Vec<Address>, Address, SuiArgument)
Upgrades a Move package
MakeMoveVec(Option<String>, Vec<SuiArgument>)
forall T: Vec<T> -> vector<T>
Given n-values of the same type, it constructs a vector. For non objects or an empty vector,
the type tag must be specified.
Trait Implementations§
Source§impl Clone for SuiCommand
impl Clone for SuiCommand
Source§fn clone(&self) -> SuiCommand
fn clone(&self) -> SuiCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SuiCommand
impl Debug for SuiCommand
Source§impl<'de> Deserialize<'de> for SuiCommand
impl<'de> Deserialize<'de> for SuiCommand
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 Display for SuiCommand
impl Display for SuiCommand
Source§impl PartialEq for SuiCommand
impl PartialEq for SuiCommand
Source§impl Serialize for SuiCommand
impl Serialize for SuiCommand
impl Eq for SuiCommand
impl StructuralPartialEq for SuiCommand
Auto Trait Implementations§
impl Freeze for SuiCommand
impl RefUnwindSafe for SuiCommand
impl Send for SuiCommand
impl Sync for SuiCommand
impl Unpin for SuiCommand
impl UnwindSafe for SuiCommand
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more