pub struct RuleDefinition {
pub id: &'static str,
pub category: Category,
pub description: &'static str,
pub origin: RuleOrigin,
}Expand description
Static definition of a validation rule in the registry.
Fields§
§id: &'static str§category: Category§description: &'static str§origin: RuleOriginImplementations§
Trait Implementations§
Source§impl Clone for RuleDefinition
impl Clone for RuleDefinition
Source§fn clone(&self) -> RuleDefinition
fn clone(&self) -> RuleDefinition
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 Debug for RuleDefinition
impl Debug for RuleDefinition
Source§impl From<&RuleDefinition> for RuleInfo
impl From<&RuleDefinition> for RuleInfo
Source§fn from(rule: &RuleDefinition) -> Self
fn from(rule: &RuleDefinition) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuleDefinition
impl RefUnwindSafe for RuleDefinition
impl Send for RuleDefinition
impl Sync for RuleDefinition
impl Unpin for RuleDefinition
impl UnsafeUnpin for RuleDefinition
impl UnwindSafe for RuleDefinition
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