pub struct Validate;Expand description
Reject the conflicting operation with an error.
- As a
UniquenessPolicyit selectsUniquenessValidator. - As a
UsagesPolicyit selectsUsagesValidator.
Trait Implementations§
impl Copy for Validate
impl Eq for Validate
impl StructuralPartialEq for Validate
Source§impl UniquenessPolicy for Validate
impl UniquenessPolicy for Validate
Source§type Decorator<T: LinkReference, L: Doublets<T>> = UniquenessValidator<T, L>
type Decorator<T: LinkReference, L: Doublets<T>> = UniquenessValidator<T, L>
The decorator this policy wraps a store in.
Source§fn decorate<T, L>(links: L) -> <Validate as UniquenessPolicy>::Decorator<T, L>where
T: LinkReference,
L: Doublets<T>,
fn decorate<T, L>(links: L) -> <Validate as UniquenessPolicy>::Decorator<T, L>where
T: LinkReference,
L: Doublets<T>,
Wraps
links in the decorator selected by this policy.Source§impl UsagesPolicy for Validate
impl UsagesPolicy for Validate
Source§type Decorator<T: LinkReference, L: Doublets<T>> = UsagesValidator<T, L>
type Decorator<T: LinkReference, L: Doublets<T>> = UsagesValidator<T, L>
The decorator this policy wraps a store in.
Source§fn decorate<T, L>(links: L) -> <Validate as UsagesPolicy>::Decorator<T, L>where
T: LinkReference,
L: Doublets<T>,
fn decorate<T, L>(links: L) -> <Validate as UsagesPolicy>::Decorator<T, L>where
T: LinkReference,
L: Doublets<T>,
Wraps
links in the decorator selected by this policy.Auto Trait Implementations§
impl Freeze for Validate
impl RefUnwindSafe for Validate
impl Send for Validate
impl Sync for Validate
impl Unpin for Validate
impl UnsafeUnpin for Validate
impl UnwindSafe for Validate
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