pub enum NormalizedConstraint {
PathPrefix(String),
DomainExact(String),
DomainGlob(String),
RegexMatch(String),
MaxLength(usize),
MaxArgsSize(usize),
GovernedIntentRequired,
RequireApprovalAbove {
threshold_units: u64,
},
SellerExact(String),
MinimumRuntimeAssurance(NormalizedRuntimeAssuranceTier),
Custom(String, String),
}Expand description
Constraint subset currently admitted into the normalized proof-facing AST.
Unsupported runtime-only constraints remain outside this boundary and cause normalization to fail closed.
Variants§
PathPrefix(String)
DomainExact(String)
DomainGlob(String)
RegexMatch(String)
MaxLength(usize)
MaxArgsSize(usize)
GovernedIntentRequired
RequireApprovalAbove
SellerExact(String)
MinimumRuntimeAssurance(NormalizedRuntimeAssuranceTier)
Custom(String, String)
Trait Implementations§
Source§impl Clone for NormalizedConstraint
impl Clone for NormalizedConstraint
Source§fn clone(&self) -> NormalizedConstraint
fn clone(&self) -> NormalizedConstraint
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 NormalizedConstraint
impl Debug for NormalizedConstraint
Source§impl<'de> Deserialize<'de> for NormalizedConstraint
impl<'de> Deserialize<'de> for NormalizedConstraint
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 PartialEq for NormalizedConstraint
impl PartialEq for NormalizedConstraint
Source§impl Serialize for NormalizedConstraint
impl Serialize for NormalizedConstraint
Source§impl TryFrom<&Constraint> for NormalizedConstraint
impl TryFrom<&Constraint> for NormalizedConstraint
Source§type Error = NormalizationError
type Error = NormalizationError
The type returned in the event of a conversion error.
impl Eq for NormalizedConstraint
impl StructuralPartialEq for NormalizedConstraint
Auto Trait Implementations§
impl Freeze for NormalizedConstraint
impl RefUnwindSafe for NormalizedConstraint
impl Send for NormalizedConstraint
impl Sync for NormalizedConstraint
impl Unpin for NormalizedConstraint
impl UnsafeUnpin for NormalizedConstraint
impl UnwindSafe for NormalizedConstraint
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