pub struct ScriptWriteSet {
pub execute_as: String,
pub script: Box<ScriptPayload>,
}Fields§
§execute_as: StringA hex encoded 32 byte Aptos account address. This is represented in a string as a 64 character hex string, sometimes shortened by stripping leading 0s, and adding a 0x. For example, address 0x0000000000000000000000000000000000000000000000000000000000000001 is represented as 0x1.
script: Box<ScriptPayload>Implementations§
Source§impl ScriptWriteSet
impl ScriptWriteSet
pub fn new(execute_as: String, script: ScriptPayload) -> ScriptWriteSet
Trait Implementations§
Source§impl Clone for ScriptWriteSet
impl Clone for ScriptWriteSet
Source§fn clone(&self) -> ScriptWriteSet
fn clone(&self) -> ScriptWriteSet
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 ScriptWriteSet
impl Debug for ScriptWriteSet
Source§impl Default for ScriptWriteSet
impl Default for ScriptWriteSet
Source§fn default() -> ScriptWriteSet
fn default() -> ScriptWriteSet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScriptWriteSet
impl<'de> Deserialize<'de> for ScriptWriteSet
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 ScriptWriteSet
impl PartialEq for ScriptWriteSet
Source§fn eq(&self, other: &ScriptWriteSet) -> bool
fn eq(&self, other: &ScriptWriteSet) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScriptWriteSet
impl Serialize for ScriptWriteSet
impl StructuralPartialEq for ScriptWriteSet
Auto Trait Implementations§
impl Freeze for ScriptWriteSet
impl RefUnwindSafe for ScriptWriteSet
impl Send for ScriptWriteSet
impl Sync for ScriptWriteSet
impl Unpin for ScriptWriteSet
impl UnsafeUnpin for ScriptWriteSet
impl UnwindSafe for ScriptWriteSet
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