pub struct DefaultValidator {
pub check_types: bool,
pub check_scope: bool,
pub allow_self_loops: bool,
pub allow_cycles: bool,
}Expand description
内置规则。字段为开关,可按产品需要组合。
Fields§
§check_types: bool§check_scope: bool§allow_self_loops: bool§allow_cycles: boolImplementations§
Trait Implementations§
Source§impl Clone for DefaultValidator
impl Clone for DefaultValidator
impl Copy for DefaultValidator
Source§impl Debug for DefaultValidator
impl Debug for DefaultValidator
Auto Trait Implementations§
impl Forget for DefaultValidator
impl Freeze for DefaultValidator
impl Move for DefaultValidator
impl RefUnwindSafe for DefaultValidator
impl Send for DefaultValidator
impl Sync for DefaultValidator
impl Unpin for DefaultValidator
impl UnsafeUnpin for DefaultValidator
impl UnwindSafe for DefaultValidator
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