pub trait NumericRules<HashableType>{
type Unit: ToTokens + PartialEq + PartialOrd + Debug + Display;
// Required methods
fn constant(&self) -> Option<ConstRule<Self::Unit>>;
fn num_containing_rules(
&self,
field_full_name: &str,
) -> Result<ContainingRules, Vec<Self::Unit>>;
fn finite(&self) -> bool;
fn comparable_rules(
&self,
) -> Result<ComparableRules<Self::Unit>, &'static str>;
}
Available on crate features
protovalidate
and protocheck
only.