pub struct DirectiveValidationSystem { /* private fields */ }Expand description
Comprehensive directive and role validation system
Implementations§
Source§impl DirectiveValidationSystem
impl DirectiveValidationSystem
Sourcepub fn directive_registry(&self) -> &DirectiveRegistry
pub fn directive_registry(&self) -> &DirectiveRegistry
Gets a reference to the directive registry
Sourcepub fn directive_registry_mut(&mut self) -> &mut DirectiveRegistry
pub fn directive_registry_mut(&mut self) -> &mut DirectiveRegistry
Gets a mutable reference to the directive registry
Sourcepub fn role_registry(&self) -> &RoleRegistry
pub fn role_registry(&self) -> &RoleRegistry
Gets a reference to the role registry
Sourcepub fn role_registry_mut(&mut self) -> &mut RoleRegistry
pub fn role_registry_mut(&mut self) -> &mut RoleRegistry
Gets a mutable reference to the role registry
Sourcepub fn validate_directive(
&mut self,
directive: &ParsedDirective,
) -> DirectiveValidationResult
pub fn validate_directive( &mut self, directive: &ParsedDirective, ) -> DirectiveValidationResult
Validates a directive and updates statistics
Sourcepub fn validate_role(&mut self, role: &ParsedRole) -> RoleValidationResult
pub fn validate_role(&mut self, role: &ParsedRole) -> RoleValidationResult
Validates a role and updates statistics
Sourcepub fn get_directive_suggestions(
&self,
directive: &ParsedDirective,
) -> Vec<String>
pub fn get_directive_suggestions( &self, directive: &ParsedDirective, ) -> Vec<String>
Gets directive suggestions
Sourcepub fn get_role_suggestions(&self, role: &ParsedRole) -> Vec<String>
pub fn get_role_suggestions(&self, role: &ParsedRole) -> Vec<String>
Gets role suggestions
Sourcepub fn statistics(&self) -> &ValidationStatistics
pub fn statistics(&self) -> &ValidationStatistics
Returns current validation statistics
Sourcepub fn reset_statistics(&mut self)
pub fn reset_statistics(&mut self)
Resets validation statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirectiveValidationSystem
impl !RefUnwindSafe for DirectiveValidationSystem
impl Send for DirectiveValidationSystem
impl Sync for DirectiveValidationSystem
impl Unpin for DirectiveValidationSystem
impl !UnwindSafe for DirectiveValidationSystem
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more