Struct chainhook_types::OperationMetadata
source · pub struct OperationMetadata {
pub public_key: Option<PublicKey>,
pub code: Option<String>,
pub method_name: Option<String>,
pub args: Option<String>,
}Fields§
§public_key: Option<PublicKey>Has to be specified for ADD_KEY, REMOVE_KEY, and STAKE operations
code: Option<String>Has to be specified for DEPLOY_CONTRACT operation
method_name: Option<String>Has to be specified for FUNCTION_CALL operation
args: Option<String>Has to be specified for FUNCTION_CALL operation
Trait Implementations§
source§impl Clone for OperationMetadata
impl Clone for OperationMetadata
source§fn clone(&self) -> OperationMetadata
fn clone(&self) -> OperationMetadata
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 OperationMetadata
impl Debug for OperationMetadata
source§impl Default for OperationMetadata
impl Default for OperationMetadata
source§fn default() -> OperationMetadata
fn default() -> OperationMetadata
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OperationMetadata
impl<'de> Deserialize<'de> for OperationMetadata
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 PartialEq<OperationMetadata> for OperationMetadata
impl PartialEq<OperationMetadata> for OperationMetadata
source§fn eq(&self, other: &OperationMetadata) -> bool
fn eq(&self, other: &OperationMetadata) -> bool
This method tests for
self and other values to be equal, and is used
by ==.