pub struct IncludeValidator;Expand description
Validator for include directive
Implementations§
Trait Implementations§
Source§impl Default for IncludeValidator
impl Default for IncludeValidator
Source§fn default() -> IncludeValidator
fn default() -> IncludeValidator
Returns the “default value” for a type. Read more
Source§impl DirectiveValidator for IncludeValidator
impl DirectiveValidator for IncludeValidator
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 IncludeValidator
impl RefUnwindSafe for IncludeValidator
impl Send for IncludeValidator
impl Sync for IncludeValidator
impl Unpin for IncludeValidator
impl UnwindSafe for IncludeValidator
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