Enum diem_types::transaction::ScriptABI
pub enum ScriptABI {
TransactionScript(TransactionScriptABI),
ScriptFunction(ScriptFunctionABI),
}
Expand description
How to call a particular Move script (aka. an “ABI”).
Variants§
TransactionScript(TransactionScriptABI)
ScriptFunction(ScriptFunctionABI)
Implementations§
§impl ScriptABI
impl ScriptABI
pub fn is_script_fun_abi(&self) -> bool
pub fn is_transaction_script_abi(&self) -> bool
pub fn name(&self) -> &str
pub fn doc(&self) -> &str
pub fn ty_args(&self) -> &[TypeArgumentABI]
pub fn args(&self) -> &[ArgumentABI]
Trait Implementations§
§impl<'de> Deserialize<'de> for ScriptABI
impl<'de> Deserialize<'de> for ScriptABI
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ScriptABI, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ScriptABI, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for ScriptABI
impl Serialize for ScriptABI
§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 ScriptABI
impl StructuralEq for ScriptABI
impl StructuralPartialEq for ScriptABI
Auto Trait Implementations§
impl RefUnwindSafe for ScriptABI
impl Send for ScriptABI
impl Sync for ScriptABI
impl Unpin for ScriptABI
impl UnwindSafe for ScriptABI
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> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.