pub struct ScriptView {Show 13 fields
pub type: String,
pub code: Option<BytesView>,
pub arguments: Option<Vec<String>>,
pub arguments_bcs: Option<Vec<BytesView>>,
pub type_arguments: Option<Vec<String>>,
pub receiver: Option<AccountAddress>,
pub amount: Option<u64>,
pub currency: Option<String>,
pub metadata: Option<BytesView>,
pub metadata_signature: Option<BytesView>,
pub module_address: Option<AccountAddress>,
pub module_name: Option<String>,
pub function_name: Option<String>,
}Fields§
§type: String§code: Option<BytesView>§arguments: Option<Vec<String>>§arguments_bcs: Option<Vec<BytesView>>§type_arguments: Option<Vec<String>>§receiver: Option<AccountAddress>§amount: Option<u64>§currency: Option<String>§metadata: Option<BytesView>§metadata_signature: Option<BytesView>§module_address: Option<AccountAddress>§module_name: Option<String>§function_name: Option<String>Implementations§
Source§impl ScriptView
impl ScriptView
Trait Implementations§
Source§impl Clone for ScriptView
impl Clone for ScriptView
Source§fn clone(&self) -> ScriptView
fn clone(&self) -> ScriptView
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 ScriptView
impl Debug for ScriptView
Source§impl Default for ScriptView
impl Default for ScriptView
Source§fn default() -> ScriptView
fn default() -> ScriptView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScriptView
impl<'de> Deserialize<'de> for ScriptView
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 From<&Script> for ScriptView
impl From<&Script> for ScriptView
Source§impl From<&ScriptFunction> for ScriptView
impl From<&ScriptFunction> for ScriptView
Source§fn from(script: &ScriptFunction) -> Self
fn from(script: &ScriptFunction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScriptView
impl PartialEq for ScriptView
Source§impl Serialize for ScriptView
impl Serialize for ScriptView
impl StructuralPartialEq for ScriptView
Auto Trait Implementations§
impl Freeze for ScriptView
impl RefUnwindSafe for ScriptView
impl Send for ScriptView
impl Sync for ScriptView
impl Unpin for ScriptView
impl UnsafeUnpin for ScriptView
impl UnwindSafe for ScriptView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
Converts
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>
Converts
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> TestOnlyHash for T
impl<T> TestOnlyHash for T
Source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.