pub struct RequestSchemaAllPass;Expand description
A RequestSchema that does no validation and always reports a passing result
Trait Implementations§
Source§impl Clone for RequestSchemaAllPass
impl Clone for RequestSchemaAllPass
Source§fn clone(&self) -> RequestSchemaAllPass
fn clone(&self) -> RequestSchemaAllPass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestSchemaAllPass
impl Debug for RequestSchemaAllPass
Source§impl RequestSchema for RequestSchemaAllPass
impl RequestSchema for RequestSchemaAllPass
Source§type Error = Infallible
type Error = Infallible
Error type returned when a request fails validation
Source§fn validate_request(
&self,
_request: &Request,
_extensions: &Extensions<'_>,
) -> Result<(), Self::Error>
fn validate_request( &self, _request: &Request, _extensions: &Extensions<'_>, ) -> Result<(), Self::Error>
Validate the given
request, returning Err if it fails validationSource§fn validate_context<'a>(
&self,
_context: &Context,
_action: &EntityUID,
_extensions: &Extensions<'a>,
) -> Result<(), Self::Error>
fn validate_context<'a>( &self, _context: &Context, _action: &EntityUID, _extensions: &Extensions<'a>, ) -> Result<(), Self::Error>
Validate the given
context, returning Err if it fails validationAuto Trait Implementations§
impl Freeze for RequestSchemaAllPass
impl RefUnwindSafe for RequestSchemaAllPass
impl Send for RequestSchemaAllPass
impl Sync for RequestSchemaAllPass
impl Unpin for RequestSchemaAllPass
impl UnwindSafe for RequestSchemaAllPass
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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