pub struct EthereumTypedDataMessageCondition {
pub field: String,
pub field_source: EthereumTypedDataMessageConditionFieldSource,
pub operator: ConditionOperator,
pub typed_data: EthereumTypedDataMessageConditionTypedData,
pub value: ConditionValue,
}Expand description
‘types’ and ‘primary_type’ attributes of the TypedData JSON object defined in EIP-712.
JSON schema
{
"title": "ethereum_typed_data_message",
"description": "'types' and 'primary_type' attributes of the TypedData
JSON object defined in EIP-712.",
"type": "object",
"required": [
"field",
"field_source",
"operator",
"typed_data",
"value"
],
"properties": {
"field": {
"title": "EthereumTypedDataMessageConditionField",
"type": "string"
},
"field_source": {
"type": "string",
"enum": [
"ethereum_typed_data_message"
]
},
"operator": {
"$ref": "#/components/schemas/ConditionOperator"
},
"typed_data": {
"type": "object",
"required": [
"primary_type",
"types"
],
"properties": {
"primary_type": {
"type": "string"
},
"types": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
}
}
}
}
}
}
},
"value": {
"$ref": "#/components/schemas/ConditionValue"
}
}
}Fields§
§field: String§field_source: EthereumTypedDataMessageConditionFieldSource§operator: ConditionOperator§typed_data: EthereumTypedDataMessageConditionTypedData§value: ConditionValueTrait Implementations§
Source§impl Clone for EthereumTypedDataMessageCondition
impl Clone for EthereumTypedDataMessageCondition
Source§fn clone(&self) -> EthereumTypedDataMessageCondition
fn clone(&self) -> EthereumTypedDataMessageCondition
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<'de> Deserialize<'de> for EthereumTypedDataMessageCondition
impl<'de> Deserialize<'de> for EthereumTypedDataMessageCondition
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumTypedDataMessageCondition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumTypedDataMessageCondition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&EthereumTypedDataMessageCondition> for EthereumTypedDataMessageCondition
impl From<&EthereumTypedDataMessageCondition> for EthereumTypedDataMessageCondition
Source§fn from(
value: &EthereumTypedDataMessageCondition,
) -> EthereumTypedDataMessageCondition
fn from( value: &EthereumTypedDataMessageCondition, ) -> EthereumTypedDataMessageCondition
Converts to this type from the input type.
Source§impl From<EthereumTypedDataMessageCondition> for PolicyCondition
impl From<EthereumTypedDataMessageCondition> for PolicyCondition
Source§fn from(value: EthereumTypedDataMessageCondition) -> PolicyCondition
fn from(value: EthereumTypedDataMessageCondition) -> PolicyCondition
Converts to this type from the input type.
Source§impl Serialize for EthereumTypedDataMessageCondition
impl Serialize for EthereumTypedDataMessageCondition
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for EthereumTypedDataMessageCondition
impl RefUnwindSafe for EthereumTypedDataMessageCondition
impl Send for EthereumTypedDataMessageCondition
impl Sync for EthereumTypedDataMessageCondition
impl Unpin for EthereumTypedDataMessageCondition
impl UnwindSafe for EthereumTypedDataMessageCondition
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