Struct diem_json_rpc_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
§fn clone(&self) -> ScriptView
fn clone(&self) -> ScriptView
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ScriptView
impl Debug for ScriptView
§impl Default for ScriptView
impl Default for ScriptView
§fn default() -> ScriptView
fn default() -> ScriptView
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ScriptView
impl<'de> Deserialize<'de> for ScriptView
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ScriptView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
§fn from(script: &Script) -> ScriptView
fn from(script: &Script) -> ScriptView
Converts to this type from the input type.
§impl From<&ScriptFunction> for ScriptView
impl From<&ScriptFunction> for ScriptView
§fn from(script: &ScriptFunction) -> ScriptView
fn from(script: &ScriptFunction) -> ScriptView
Converts to this type from the input type.
§impl PartialEq<ScriptView> for ScriptView
impl PartialEq<ScriptView> for ScriptView
§fn eq(&self, other: &ScriptView) -> bool
fn eq(&self, other: &ScriptView) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for ScriptView
impl Serialize for ScriptView
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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 Eq for ScriptView
impl StructuralEq for ScriptView
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
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>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.