Struct diem_sdk::client::views::ScriptView [−]
pub struct ScriptView {Show 13 fields
pub type: String,
pub code: Option<BytesView>,
pub arguments: Option<Vec<String, Global>>,
pub arguments_bcs: Option<Vec<BytesView, Global>>,
pub type_arguments: Option<Vec<String, Global>>,
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, Global>>
arguments_bcs: Option<Vec<BytesView, Global>>
type_arguments: Option<Vec<String, Global>>
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
impl ScriptView
impl ScriptView
pub fn unknown() -> ScriptView
Trait Implementations
impl Clone for ScriptView
impl Clone for ScriptView
pub fn clone(&self) -> ScriptView
pub fn clone(&self) -> ScriptView
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for ScriptView
impl Debug for ScriptView
impl Default for ScriptView
impl Default for ScriptView
pub fn default() -> ScriptView
pub fn default() -> ScriptView
Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for ScriptView
impl<'de> Deserialize<'de> for ScriptView
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ScriptView, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ScriptView, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'_> From<&'_ Script> for ScriptView
impl<'_> From<&'_ Script> for ScriptView
pub fn from(script: &Script) -> ScriptView
pub fn from(script: &Script) -> ScriptView
Performs the conversion.
impl<'_> From<&'_ ScriptFunction> for ScriptView
impl<'_> From<&'_ ScriptFunction> for ScriptView
pub fn from(script: &ScriptFunction) -> ScriptView
pub fn from(script: &ScriptFunction) -> ScriptView
Performs the conversion.
impl PartialEq<ScriptView> for ScriptView
impl PartialEq<ScriptView> for ScriptView
pub fn eq(&self, other: &ScriptView) -> bool
pub fn eq(&self, other: &ScriptView) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ScriptView) -> bool
pub fn ne(&self, other: &ScriptView) -> bool
This method tests for !=
.
impl Serialize for ScriptView
impl Serialize for ScriptView
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ScriptView
Auto Trait Implementations
impl RefUnwindSafe for ScriptView
impl Send for ScriptView
impl Sync for ScriptView
impl Unpin for ScriptView
impl UnwindSafe for ScriptView
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Generates a hash used only for tests.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more