pub struct ScriptPayload {
pub code: Box<MoveScriptBytecode>,
pub type_arguments: Vec<String>,
pub arguments: Vec<Value>,
}Expand description
ScriptPayload : Payload which runs a script that can run multiple functions
Fields§
§code: Box<MoveScriptBytecode>§type_arguments: Vec<String>Type arguments of the function
arguments: Vec<Value>Arguments of the function
Implementations§
Source§impl ScriptPayload
impl ScriptPayload
Sourcepub fn new(
code: MoveScriptBytecode,
type_arguments: Vec<String>,
arguments: Vec<Value>,
) -> ScriptPayload
pub fn new( code: MoveScriptBytecode, type_arguments: Vec<String>, arguments: Vec<Value>, ) -> ScriptPayload
Payload which runs a script that can run multiple functions
Trait Implementations§
Source§impl Clone for ScriptPayload
impl Clone for ScriptPayload
Source§fn clone(&self) -> ScriptPayload
fn clone(&self) -> ScriptPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptPayload
impl Debug for ScriptPayload
Source§impl Default for ScriptPayload
impl Default for ScriptPayload
Source§fn default() -> ScriptPayload
fn default() -> ScriptPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScriptPayload
impl<'de> Deserialize<'de> for ScriptPayload
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 PartialEq for ScriptPayload
impl PartialEq for ScriptPayload
Source§fn eq(&self, other: &ScriptPayload) -> bool
fn eq(&self, other: &ScriptPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScriptPayload
impl Serialize for ScriptPayload
impl StructuralPartialEq for ScriptPayload
Auto Trait Implementations§
impl Freeze for ScriptPayload
impl RefUnwindSafe for ScriptPayload
impl Send for ScriptPayload
impl Sync for ScriptPayload
impl Unpin for ScriptPayload
impl UnsafeUnpin for ScriptPayload
impl UnwindSafe for ScriptPayload
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
Mutably borrows from an owned value. Read more