pub struct UpdateRuleResponse {
pub action: PolicyAction,
pub conditions: Vec<PolicyCondition>,
pub id: String,
pub method: PolicyMethod,
pub name: UpdateRuleResponseName,
}Expand description
UpdateRuleResponse
JSON schema
{
"allOf": [
{
"$ref": "#/components/schemas/PolicyRuleResponse"
},
{
"examples": [
{
"action": "ALLOW",
"conditions": [
{
"field": "to",
"field_source": "ethereum_transaction",
"operator": "eq",
"value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
],
"id": "allowlist-usdc-contract-on-base-14351345",
"method": "eth_sendTransaction",
"name": "Allowlist USDC contract on Base"
}
]
}
]
}Fields§
§action: PolicyAction§conditions: Vec<PolicyCondition>§id: String§method: PolicyMethod§name: UpdateRuleResponseNameTrait Implementations§
Source§impl Clone for UpdateRuleResponse
impl Clone for UpdateRuleResponse
Source§fn clone(&self) -> UpdateRuleResponse
fn clone(&self) -> UpdateRuleResponse
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 UpdateRuleResponse
impl Debug for UpdateRuleResponse
Source§impl<'de> Deserialize<'de> for UpdateRuleResponse
impl<'de> Deserialize<'de> for UpdateRuleResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateRuleResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateRuleResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&UpdateRuleResponse> for UpdateRuleResponse
impl From<&UpdateRuleResponse> for UpdateRuleResponse
Source§fn from(value: &UpdateRuleResponse) -> UpdateRuleResponse
fn from(value: &UpdateRuleResponse) -> UpdateRuleResponse
Converts to this type from the input type.
Source§impl Serialize for UpdateRuleResponse
impl Serialize for UpdateRuleResponse
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 UpdateRuleResponse
impl RefUnwindSafe for UpdateRuleResponse
impl Send for UpdateRuleResponse
impl Sync for UpdateRuleResponse
impl Unpin for UpdateRuleResponse
impl UnwindSafe for UpdateRuleResponse
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