Struct diem_json_rpc_types::views::ScriptView
source · 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 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 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§impl PartialEq<ScriptView> for ScriptView
impl PartialEq<ScriptView> for ScriptView
source§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 ==
.source§impl Serialize for ScriptView
impl Serialize for ScriptView
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.§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.