pub struct CreateAlertV1BodyAlertSpecifiersItem {
pub custom_field_filters: Vec<CreateAlertV1BodyAlertSpecifiersItemCustomFieldFiltersItem>,
pub exclude: Vec<CreateAlertV1BodyAlertSpecifiersItemExcludeItem>,
}Expand description
CreateAlertV1BodyAlertSpecifiersItem
JSON schema
{
"type": "object",
"properties": {
"custom_field_filters": {
"description": "A list of custom field filters for notification
types that support advanced filtering",
"type": "array",
"items": {
"type": "object",
"required": [
"entity",
"key"
],
"properties": {
"entity": {
"type": "string",
"enum": [
"Contract",
"Commit",
"ContractCredit",
"ContractCreditOrCommit"
],
"x-mint-enum": {
"ContractCreditOrCommit": [
"ff:alert-specifiers-enabled"
]
}
},
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"exclude": {
"description": "If provided, the specifier will not apply to
balances that matches the inclusion criteria and any of the excluding
values.",
"type": "array",
"items": {
"type": "object",
"properties": {
"custom_field_filters": {
"description": "A list of custom field filters for
notification types that support advanced filtering",
"type": "array",
"items": {
"type": "object",
"required": [
"entity",
"key",
"value"
],
"properties": {
"entity": {
"type": "string",
"enum": [
"Contract",
"Commit",
"ContractCredit",
"ContractCreditOrCommit"
],
"x-mint-enum": {
"ContractCreditOrCommit": [
"ff:alert-specifiers-enabled"
]
}
},
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
}
}
}
}Fields§
§custom_field_filters: Vec<CreateAlertV1BodyAlertSpecifiersItemCustomFieldFiltersItem>A list of custom field filters for notification types that support advanced filtering
exclude: Vec<CreateAlertV1BodyAlertSpecifiersItemExcludeItem>If provided, the specifier will not apply to balances that matches the inclusion criteria and any of the excluding values.
Trait Implementations§
Source§impl Clone for CreateAlertV1BodyAlertSpecifiersItem
impl Clone for CreateAlertV1BodyAlertSpecifiersItem
Source§fn clone(&self) -> CreateAlertV1BodyAlertSpecifiersItem
fn clone(&self) -> CreateAlertV1BodyAlertSpecifiersItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateAlertV1BodyAlertSpecifiersItem
impl<'de> Deserialize<'de> for CreateAlertV1BodyAlertSpecifiersItem
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
Auto Trait Implementations§
impl Freeze for CreateAlertV1BodyAlertSpecifiersItem
impl RefUnwindSafe for CreateAlertV1BodyAlertSpecifiersItem
impl Send for CreateAlertV1BodyAlertSpecifiersItem
impl Sync for CreateAlertV1BodyAlertSpecifiersItem
impl Unpin for CreateAlertV1BodyAlertSpecifiersItem
impl UnsafeUnpin for CreateAlertV1BodyAlertSpecifiersItem
impl UnwindSafe for CreateAlertV1BodyAlertSpecifiersItem
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