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