pub enum PolicyCriterion {
Show 17 variants
EthValueCriterion(EthValueCriterion),
EvmAddressCriterion(EvmAddressCriterion),
EvmNetworkCriterion(EvmNetworkCriterion),
EvmDataCriterion(EvmDataCriterion),
EvmMessageCriterion(EvmMessageCriterion),
SignEvmTypedDataFieldCriterion(SignEvmTypedDataFieldCriterion),
SignEvmTypedDataVerifyingContractCriterion(SignEvmTypedDataVerifyingContractCriterion),
NetUsdChangeCriterion(NetUsdChangeCriterion),
SolAddressCriterion(SolAddressCriterion),
SolValueCriterion(SolValueCriterion),
SplAddressCriterion(SplAddressCriterion),
SplValueCriterion(SplValueCriterion),
MintAddressCriterion(MintAddressCriterion),
SolDataCriterion(SolDataCriterion),
SolMessageCriterion(SolMessageCriterion),
ProgramIdCriterion(ProgramIdCriterion),
SolNetworkCriterion(SolNetworkCriterion),
}Expand description
The unmet criterion, exactly as defined in the rule, discriminated by type.
JSON schema
{
"description": "The unmet criterion, exactly as defined in the rule, discriminated by `type`.",
"examples": [
{
"addresses": [
"0x000000000000000000000000000000000000dEaD"
],
"operator": "in",
"type": "evmAddress"
}
],
"oneOf": [
{
"$ref": "#/components/schemas/EthValueCriterion"
},
{
"$ref": "#/components/schemas/EvmAddressCriterion"
},
{
"$ref": "#/components/schemas/EvmNetworkCriterion"
},
{
"$ref": "#/components/schemas/EvmDataCriterion"
},
{
"$ref": "#/components/schemas/EvmMessageCriterion"
},
{
"$ref": "#/components/schemas/SignEvmTypedDataFieldCriterion"
},
{
"$ref": "#/components/schemas/SignEvmTypedDataVerifyingContractCriterion"
},
{
"$ref": "#/components/schemas/NetUSDChangeCriterion"
},
{
"$ref": "#/components/schemas/SolAddressCriterion"
},
{
"$ref": "#/components/schemas/SolValueCriterion"
},
{
"$ref": "#/components/schemas/SplAddressCriterion"
},
{
"$ref": "#/components/schemas/SplValueCriterion"
},
{
"$ref": "#/components/schemas/MintAddressCriterion"
},
{
"$ref": "#/components/schemas/SolDataCriterion"
},
{
"$ref": "#/components/schemas/SolMessageCriterion"
},
{
"$ref": "#/components/schemas/ProgramIdCriterion"
},
{
"$ref": "#/components/schemas/SolNetworkCriterion"
}
]
}Variants§
EthValueCriterion(EthValueCriterion)
EvmAddressCriterion(EvmAddressCriterion)
EvmNetworkCriterion(EvmNetworkCriterion)
EvmDataCriterion(EvmDataCriterion)
EvmMessageCriterion(EvmMessageCriterion)
SignEvmTypedDataFieldCriterion(SignEvmTypedDataFieldCriterion)
SignEvmTypedDataVerifyingContractCriterion(SignEvmTypedDataVerifyingContractCriterion)
NetUsdChangeCriterion(NetUsdChangeCriterion)
SolAddressCriterion(SolAddressCriterion)
SolValueCriterion(SolValueCriterion)
SplAddressCriterion(SplAddressCriterion)
SplValueCriterion(SplValueCriterion)
MintAddressCriterion(MintAddressCriterion)
SolDataCriterion(SolDataCriterion)
SolMessageCriterion(SolMessageCriterion)
ProgramIdCriterion(ProgramIdCriterion)
SolNetworkCriterion(SolNetworkCriterion)
Trait Implementations§
Source§impl Clone for PolicyCriterion
impl Clone for PolicyCriterion
Source§impl Debug for PolicyCriterion
impl Debug for PolicyCriterion
Source§impl<'de> Deserialize<'de> for PolicyCriterion
impl<'de> Deserialize<'de> for PolicyCriterion
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<&PolicyCriterion> for PolicyCriterion
impl From<&PolicyCriterion> for PolicyCriterion
Source§fn from(value: &PolicyCriterion) -> Self
fn from(value: &PolicyCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EthValueCriterion> for PolicyCriterion
impl From<EthValueCriterion> for PolicyCriterion
Source§fn from(value: EthValueCriterion) -> Self
fn from(value: EthValueCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmAddressCriterion> for PolicyCriterion
impl From<EvmAddressCriterion> for PolicyCriterion
Source§fn from(value: EvmAddressCriterion) -> Self
fn from(value: EvmAddressCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmDataCriterion> for PolicyCriterion
impl From<EvmDataCriterion> for PolicyCriterion
Source§fn from(value: EvmDataCriterion) -> Self
fn from(value: EvmDataCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmMessageCriterion> for PolicyCriterion
impl From<EvmMessageCriterion> for PolicyCriterion
Source§fn from(value: EvmMessageCriterion) -> Self
fn from(value: EvmMessageCriterion) -> Self
Converts to this type from the input type.
Source§impl From<EvmNetworkCriterion> for PolicyCriterion
impl From<EvmNetworkCriterion> for PolicyCriterion
Source§fn from(value: EvmNetworkCriterion) -> Self
fn from(value: EvmNetworkCriterion) -> Self
Converts to this type from the input type.
Source§impl From<MintAddressCriterion> for PolicyCriterion
impl From<MintAddressCriterion> for PolicyCriterion
Source§fn from(value: MintAddressCriterion) -> Self
fn from(value: MintAddressCriterion) -> Self
Converts to this type from the input type.
Source§impl From<NetUsdChangeCriterion> for PolicyCriterion
impl From<NetUsdChangeCriterion> for PolicyCriterion
Source§fn from(value: NetUsdChangeCriterion) -> Self
fn from(value: NetUsdChangeCriterion) -> Self
Converts to this type from the input type.
Source§impl From<ProgramIdCriterion> for PolicyCriterion
impl From<ProgramIdCriterion> for PolicyCriterion
Source§fn from(value: ProgramIdCriterion) -> Self
fn from(value: ProgramIdCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SignEvmTypedDataFieldCriterion> for PolicyCriterion
impl From<SignEvmTypedDataFieldCriterion> for PolicyCriterion
Source§fn from(value: SignEvmTypedDataFieldCriterion) -> Self
fn from(value: SignEvmTypedDataFieldCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SignEvmTypedDataVerifyingContractCriterion> for PolicyCriterion
impl From<SignEvmTypedDataVerifyingContractCriterion> for PolicyCriterion
Source§fn from(value: SignEvmTypedDataVerifyingContractCriterion) -> Self
fn from(value: SignEvmTypedDataVerifyingContractCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SolAddressCriterion> for PolicyCriterion
impl From<SolAddressCriterion> for PolicyCriterion
Source§fn from(value: SolAddressCriterion) -> Self
fn from(value: SolAddressCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SolDataCriterion> for PolicyCriterion
impl From<SolDataCriterion> for PolicyCriterion
Source§fn from(value: SolDataCriterion) -> Self
fn from(value: SolDataCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SolMessageCriterion> for PolicyCriterion
impl From<SolMessageCriterion> for PolicyCriterion
Source§fn from(value: SolMessageCriterion) -> Self
fn from(value: SolMessageCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SolNetworkCriterion> for PolicyCriterion
impl From<SolNetworkCriterion> for PolicyCriterion
Source§fn from(value: SolNetworkCriterion) -> Self
fn from(value: SolNetworkCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SolValueCriterion> for PolicyCriterion
impl From<SolValueCriterion> for PolicyCriterion
Source§fn from(value: SolValueCriterion) -> Self
fn from(value: SolValueCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SplAddressCriterion> for PolicyCriterion
impl From<SplAddressCriterion> for PolicyCriterion
Source§fn from(value: SplAddressCriterion) -> Self
fn from(value: SplAddressCriterion) -> Self
Converts to this type from the input type.
Source§impl From<SplValueCriterion> for PolicyCriterion
impl From<SplValueCriterion> for PolicyCriterion
Source§fn from(value: SplValueCriterion) -> Self
fn from(value: SplValueCriterion) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyCriterion
impl RefUnwindSafe for PolicyCriterion
impl Send for PolicyCriterion
impl Sync for PolicyCriterion
impl Unpin for PolicyCriterion
impl UnsafeUnpin for PolicyCriterion
impl UnwindSafe for PolicyCriterion
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