pub struct WarningValidator;Expand description
Validator for warning directive
Implementations§
Trait Implementations§
Source§impl Default for WarningValidator
impl Default for WarningValidator
Source§fn default() -> WarningValidator
fn default() -> WarningValidator
Returns the “default value” for a type. Read more
Source§impl DirectiveValidator for WarningValidator
impl DirectiveValidator for WarningValidator
Source§fn validate(&self, directive: &ParsedDirective) -> DirectiveValidationResult
fn validate(&self, directive: &ParsedDirective) -> DirectiveValidationResult
Validates a parsed directive
Source§fn expected_arguments(&self) -> Vec<String>
fn expected_arguments(&self) -> Vec<String>
Returns expected arguments for this directive
Source§fn valid_options(&self) -> Vec<String>
fn valid_options(&self) -> Vec<String>
Returns valid options for this directive
Source§fn requires_content(&self) -> bool
fn requires_content(&self) -> bool
Returns whether this directive requires content
Source§fn allows_content(&self) -> bool
fn allows_content(&self) -> bool
Returns whether this directive allows content
Source§fn get_suggestions(&self, directive: &ParsedDirective) -> Vec<String>
fn get_suggestions(&self, directive: &ParsedDirective) -> Vec<String>
Provides suggestions for fixing directive issues
Auto Trait Implementations§
impl Freeze for WarningValidator
impl RefUnwindSafe for WarningValidator
impl Send for WarningValidator
impl Sync for WarningValidator
impl Unpin for WarningValidator
impl UnwindSafe for WarningValidator
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