pub struct ObservedTypedDataField {
pub condition_index: u64,
pub truncated: bool,
pub value: Option<ObservedTypedDataFieldValue>,
}Expand description
The value an evmTypedDataField condition read from the typed data message.
JSON schema
{
"title": "ObservedTypedDataField",
"description": "The value an `evmTypedDataField` condition read from the typed data message.",
"examples": [
{
"conditionIndex": 1,
"truncated": false,
"value": "40"
}
],
"type": "object",
"required": [
"conditionIndex",
"truncated"
],
"properties": {
"conditionIndex": {
"description": "Zero-based index into the criterion's `conditions`.",
"examples": [
1
],
"type": "integer",
"minimum": 0.0
},
"truncated": {
"description": "Whether `value` was cut to its first 256 characters.",
"examples": [
false
],
"type": "boolean"
},
"value": {
"description": "The value at the condition's `path`, as text in the same format as `ObservedArgument.value`. Omitted when the message has no value at that path.",
"examples": [
"40"
],
"type": "string",
"maxLength": 256
}
},
"additionalProperties": false
}Fields§
§condition_index: u64Zero-based index into the criterion’s conditions.
truncated: boolWhether value was cut to its first 256 characters.
value: Option<ObservedTypedDataFieldValue>The value at the condition’s path, as text in the same format as ObservedArgument.value. Omitted when the message has no value at that path.
Implementations§
Source§impl ObservedTypedDataField
impl ObservedTypedDataField
pub fn builder() -> ObservedTypedDataField
Trait Implementations§
Source§impl Clone for ObservedTypedDataField
impl Clone for ObservedTypedDataField
Source§impl Debug for ObservedTypedDataField
impl Debug for ObservedTypedDataField
Source§impl<'de> Deserialize<'de> for ObservedTypedDataField
impl<'de> Deserialize<'de> for ObservedTypedDataField
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<&ObservedTypedDataField> for ObservedTypedDataField
impl From<&ObservedTypedDataField> for ObservedTypedDataField
Source§fn from(value: &ObservedTypedDataField) -> Self
fn from(value: &ObservedTypedDataField) -> Self
Converts to this type from the input type.
Source§impl From<ObservedTypedDataField> for ObservedTypedDataField
impl From<ObservedTypedDataField> for ObservedTypedDataField
Source§fn from(value: ObservedTypedDataField) -> Self
fn from(value: ObservedTypedDataField) -> Self
Converts to this type from the input type.
Source§impl Serialize for ObservedTypedDataField
impl Serialize for ObservedTypedDataField
Source§impl TryFrom<ObservedTypedDataField> for ObservedTypedDataField
impl TryFrom<ObservedTypedDataField> for ObservedTypedDataField
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ObservedTypedDataField) -> Result<Self, ConversionError>
fn try_from(value: ObservedTypedDataField) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ObservedTypedDataField
impl RefUnwindSafe for ObservedTypedDataField
impl Send for ObservedTypedDataField
impl Sync for ObservedTypedDataField
impl Unpin for ObservedTypedDataField
impl UnsafeUnpin for ObservedTypedDataField
impl UnwindSafe for ObservedTypedDataField
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