pub struct EvmAddressObservation {
pub address: Option<EvmAddressObservationAddress>,
pub type_: EvmAddressObservationType,
}Expand description
The transaction to address an evmAddress criterion compared. For a token transfer, this is the token contract, not the token recipient; use an evmData criterion to constrain the recipient.
JSON schema
{
"title": "EvmAddressObservation",
"description": "The transaction `to` address an `evmAddress` criterion compared. For a token transfer, this is the token contract, not the token recipient; use an `evmData` criterion to constrain the recipient.",
"examples": [
{
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"type": "evmAddress"
}
],
"type": "object",
"required": [
"type"
],
"properties": {
"address": {
"description": "The transaction `to` address. Omitted for a contract-creation transaction, which has none.",
"examples": [
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
],
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"type": {
"description": "The criterion type.",
"examples": [
"evmAddress"
],
"type": "string",
"enum": [
"evmAddress"
],
"x-go-type": "string"
}
},
"additionalProperties": false
}Fields§
§address: Option<EvmAddressObservationAddress>The transaction to address. Omitted for a contract-creation transaction, which has none.
type_: EvmAddressObservationTypeThe criterion type.
Implementations§
Source§impl EvmAddressObservation
impl EvmAddressObservation
pub fn builder() -> EvmAddressObservation
Trait Implementations§
Source§impl Clone for EvmAddressObservation
impl Clone for EvmAddressObservation
Source§impl Debug for EvmAddressObservation
impl Debug for EvmAddressObservation
Source§impl<'de> Deserialize<'de> for EvmAddressObservation
impl<'de> Deserialize<'de> for EvmAddressObservation
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<&EvmAddressObservation> for EvmAddressObservation
impl From<&EvmAddressObservation> for EvmAddressObservation
Source§fn from(value: &EvmAddressObservation) -> Self
fn from(value: &EvmAddressObservation) -> Self
Converts to this type from the input type.
Source§impl From<EvmAddressObservation> for PolicyCriterionObservation
impl From<EvmAddressObservation> for PolicyCriterionObservation
Source§fn from(value: EvmAddressObservation) -> Self
fn from(value: EvmAddressObservation) -> Self
Converts to this type from the input type.
Source§impl From<EvmAddressObservation> for EvmAddressObservation
impl From<EvmAddressObservation> for EvmAddressObservation
Source§fn from(value: EvmAddressObservation) -> Self
fn from(value: EvmAddressObservation) -> Self
Converts to this type from the input type.
Source§impl Serialize for EvmAddressObservation
impl Serialize for EvmAddressObservation
Source§impl TryFrom<EvmAddressObservation> for EvmAddressObservation
impl TryFrom<EvmAddressObservation> for EvmAddressObservation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EvmAddressObservation) -> Result<Self, ConversionError>
fn try_from(value: EvmAddressObservation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EvmAddressObservation
impl RefUnwindSafe for EvmAddressObservation
impl Send for EvmAddressObservation
impl Sync for EvmAddressObservation
impl Unpin for EvmAddressObservation
impl UnsafeUnpin for EvmAddressObservation
impl UnwindSafe for EvmAddressObservation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more