pub struct EvmTypedStringCondition {
pub match_: String,
pub path: String,
}
Expand description
A schema for specifying criterion for a string field of an EVM typed message. The value can be deeply nested within the typed data’s message.
JSON schema
{
"title": "EvmTypedStringCondition",
"description": "A schema for specifying criterion for a string field of an EVM typed message. The value can be deeply nested within the typed data's message.",
"type": "object",
"required": [
"match",
"path"
],
"properties": {
"match": {
"description": "A regular expression the field is matched against.",
"examples": [
"^hello ([a-z]+)$"
],
"type": "string"
},
"path": {
"description": "The path to the field to compare against this criterion. To reference deeply nested fields within the message, separate object keys by `.`, and access array values using `[index]`. If the field does not exist or is not an address, the operation will be rejected.",
"examples": [
"targets[0].message"
],
"type": "string"
}
},
"x-audience": "public"
}
Fields§
§match_: String
A regular expression the field is matched against.
path: String
The path to the field to compare against this criterion. To reference deeply nested fields within the message, separate object keys by .
, and access array values using [index]
. If the field does not exist or is not an address, the operation will be rejected.
Implementations§
Source§impl EvmTypedStringCondition
impl EvmTypedStringCondition
pub fn builder() -> EvmTypedStringCondition
Trait Implementations§
Source§impl Clone for EvmTypedStringCondition
impl Clone for EvmTypedStringCondition
Source§fn clone(&self) -> EvmTypedStringCondition
fn clone(&self) -> EvmTypedStringCondition
Returns a duplicate 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 EvmTypedStringCondition
impl Debug for EvmTypedStringCondition
Source§impl<'de> Deserialize<'de> for EvmTypedStringCondition
impl<'de> Deserialize<'de> for EvmTypedStringCondition
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<&EvmTypedStringCondition> for EvmTypedStringCondition
impl From<&EvmTypedStringCondition> for EvmTypedStringCondition
Source§fn from(value: &EvmTypedStringCondition) -> Self
fn from(value: &EvmTypedStringCondition) -> Self
Converts to this type from the input type.
Source§impl From<EvmTypedStringCondition> for EvmTypedStringCondition
impl From<EvmTypedStringCondition> for EvmTypedStringCondition
Source§fn from(value: EvmTypedStringCondition) -> Self
fn from(value: EvmTypedStringCondition) -> Self
Converts to this type from the input type.
Source§impl From<EvmTypedStringCondition> for SignEvmTypedDataFieldCriterionConditionsItem
impl From<EvmTypedStringCondition> for SignEvmTypedDataFieldCriterionConditionsItem
Source§fn from(value: EvmTypedStringCondition) -> Self
fn from(value: EvmTypedStringCondition) -> Self
Converts to this type from the input type.
Source§impl Serialize for EvmTypedStringCondition
impl Serialize for EvmTypedStringCondition
Source§impl TryFrom<EvmTypedStringCondition> for EvmTypedStringCondition
impl TryFrom<EvmTypedStringCondition> for EvmTypedStringCondition
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EvmTypedStringCondition) -> Result<Self, ConversionError>
fn try_from(value: EvmTypedStringCondition) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EvmTypedStringCondition
impl RefUnwindSafe for EvmTypedStringCondition
impl Send for EvmTypedStringCondition
impl Sync for EvmTypedStringCondition
impl Unpin for EvmTypedStringCondition
impl UnwindSafe for EvmTypedStringCondition
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