pub struct EvmNetworkObservation {
pub chain_id: Option<u64>,
pub network: Option<String>,
pub type_: EvmNetworkObservationType,
}Expand description
The network an evmNetwork criterion compared.
JSON schema
{
"title": "EvmNetworkObservation",
"description": "The network an `evmNetwork` criterion compared.",
"examples": [
{
"chainId": 84532,
"network": "base-sepolia",
"type": "evmNetwork"
}
],
"type": "object",
"required": [
"type"
],
"properties": {
"chainId": {
"description": "The chain ID from the transaction. Omitted when the network came from the request's `network`.",
"examples": [
84532
],
"type": "integer",
"minimum": 0.0
},
"network": {
"description": "The network the operation targets, from the request's `network` or derived from the transaction's chain ID. Omitted when the chain ID is not a supported network.",
"examples": [
"base-sepolia"
],
"type": "string"
},
"type": {
"description": "The criterion type.",
"examples": [
"evmNetwork"
],
"type": "string",
"enum": [
"evmNetwork"
],
"x-go-type": "string"
}
},
"additionalProperties": false
}Fields§
§chain_id: Option<u64>The chain ID from the transaction. Omitted when the network came from the request’s network.
network: Option<String>The network the operation targets, from the request’s network or derived from the transaction’s chain ID. Omitted when the chain ID is not a supported network.
type_: EvmNetworkObservationTypeThe criterion type.
Implementations§
Source§impl EvmNetworkObservation
impl EvmNetworkObservation
pub fn builder() -> EvmNetworkObservation
Trait Implementations§
Source§impl Clone for EvmNetworkObservation
impl Clone for EvmNetworkObservation
Source§impl Debug for EvmNetworkObservation
impl Debug for EvmNetworkObservation
Source§impl<'de> Deserialize<'de> for EvmNetworkObservation
impl<'de> Deserialize<'de> for EvmNetworkObservation
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<&EvmNetworkObservation> for EvmNetworkObservation
impl From<&EvmNetworkObservation> for EvmNetworkObservation
Source§fn from(value: &EvmNetworkObservation) -> Self
fn from(value: &EvmNetworkObservation) -> Self
Converts to this type from the input type.
Source§impl From<EvmNetworkObservation> for PolicyCriterionObservation
impl From<EvmNetworkObservation> for PolicyCriterionObservation
Source§fn from(value: EvmNetworkObservation) -> Self
fn from(value: EvmNetworkObservation) -> Self
Converts to this type from the input type.
Source§impl From<EvmNetworkObservation> for EvmNetworkObservation
impl From<EvmNetworkObservation> for EvmNetworkObservation
Source§fn from(value: EvmNetworkObservation) -> Self
fn from(value: EvmNetworkObservation) -> Self
Converts to this type from the input type.
Source§impl Serialize for EvmNetworkObservation
impl Serialize for EvmNetworkObservation
Source§impl TryFrom<EvmNetworkObservation> for EvmNetworkObservation
impl TryFrom<EvmNetworkObservation> for EvmNetworkObservation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EvmNetworkObservation) -> Result<Self, ConversionError>
fn try_from(value: EvmNetworkObservation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EvmNetworkObservation
impl RefUnwindSafe for EvmNetworkObservation
impl Send for EvmNetworkObservation
impl Sync for EvmNetworkObservation
impl Unpin for EvmNetworkObservation
impl UnsafeUnpin for EvmNetworkObservation
impl UnwindSafe for EvmNetworkObservation
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