pub struct EvmTypedDataFieldObservation {
pub fields: Vec<ObservedTypedDataField>,
pub type_: EvmTypedDataFieldObservationType,
pub types_matched: bool,
}Expand description
The typed data fields an evmTypedDataField criterion compared. The message’s types must match the criterion’s types before any condition is checked.
JSON schema
{
"title": "EvmTypedDataFieldObservation",
"description": "The typed data fields an `evmTypedDataField` criterion compared. The message's types must match the criterion's `types` before any condition is checked.",
"examples": [
{
"fields": [
{
"conditionIndex": 1,
"truncated": false,
"value": "40"
}
],
"type": "evmTypedDataField",
"typesMatched": true
}
],
"type": "object",
"required": [
"fields",
"type",
"typesMatched"
],
"properties": {
"fields": {
"description": "The fields that decided the criterion. When the criterion is unmet, this is the field of the first failing condition only. When it is met, this is the field of every condition, in `conditions` order.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ObservedTypedDataField"
},
"maxItems": 64
},
"type": {
"description": "The criterion type.",
"examples": [
"evmTypedDataField"
],
"type": "string",
"enum": [
"evmTypedDataField"
],
"x-go-type": "string"
},
"typesMatched": {
"description": "Whether the message's types matched the criterion's `types`. When `false`, no condition was checked and `fields` is empty.",
"examples": [
true
],
"type": "boolean"
}
},
"additionalProperties": false
}Fields§
§fields: Vec<ObservedTypedDataField>The fields that decided the criterion. When the criterion is unmet, this is the field of the first failing condition only. When it is met, this is the field of every condition, in conditions order.
type_: EvmTypedDataFieldObservationTypeThe criterion type.
types_matched: boolWhether the message’s types matched the criterion’s types. When false, no condition was checked and fields is empty.
Implementations§
Trait Implementations§
Source§impl Clone for EvmTypedDataFieldObservation
impl Clone for EvmTypedDataFieldObservation
Source§impl Debug for EvmTypedDataFieldObservation
impl Debug for EvmTypedDataFieldObservation
Source§impl<'de> Deserialize<'de> for EvmTypedDataFieldObservation
impl<'de> Deserialize<'de> for EvmTypedDataFieldObservation
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<&EvmTypedDataFieldObservation> for EvmTypedDataFieldObservation
impl From<&EvmTypedDataFieldObservation> for EvmTypedDataFieldObservation
Source§fn from(value: &EvmTypedDataFieldObservation) -> Self
fn from(value: &EvmTypedDataFieldObservation) -> Self
Converts to this type from the input type.
Source§impl From<EvmTypedDataFieldObservation> for PolicyCriterionObservation
impl From<EvmTypedDataFieldObservation> for PolicyCriterionObservation
Source§fn from(value: EvmTypedDataFieldObservation) -> Self
fn from(value: EvmTypedDataFieldObservation) -> Self
Converts to this type from the input type.
Source§impl From<EvmTypedDataFieldObservation> for EvmTypedDataFieldObservation
impl From<EvmTypedDataFieldObservation> for EvmTypedDataFieldObservation
Source§fn from(value: EvmTypedDataFieldObservation) -> Self
fn from(value: EvmTypedDataFieldObservation) -> Self
Converts to this type from the input type.
Source§impl TryFrom<EvmTypedDataFieldObservation> for EvmTypedDataFieldObservation
impl TryFrom<EvmTypedDataFieldObservation> for EvmTypedDataFieldObservation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: EvmTypedDataFieldObservation,
) -> Result<Self, ConversionError>
fn try_from( value: EvmTypedDataFieldObservation, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EvmTypedDataFieldObservation
impl RefUnwindSafe for EvmTypedDataFieldObservation
impl Send for EvmTypedDataFieldObservation
impl Sync for EvmTypedDataFieldObservation
impl Unpin for EvmTypedDataFieldObservation
impl UnsafeUnpin for EvmTypedDataFieldObservation
impl UnwindSafe for EvmTypedDataFieldObservation
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