Struct gotham_restful::NoopExtractor
source · pub struct NoopExtractor;
Expand description
A no-op extractor that can be used as a default type for Endpoint::Placeholders and Endpoint::Params.
Trait Implementations§
source§impl Clone for NoopExtractor
impl Clone for NoopExtractor
source§fn clone(&self) -> NoopExtractor
fn clone(&self) -> NoopExtractor
Returns a copy 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 NoopExtractor
impl Debug for NoopExtractor
source§impl<'de> Deserialize<'de> for NoopExtractor
impl<'de> Deserialize<'de> for NoopExtractor
source§fn deserialize<D: Deserializer<'de>>(_: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(_: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl OpenapiType for NoopExtractor
impl OpenapiType for NoopExtractor
impl Copy for NoopExtractor
impl StateData for NoopExtractor
Auto Trait Implementations§
impl RefUnwindSafe for NoopExtractor
impl Send for NoopExtractor
impl Sync for NoopExtractor
impl Unpin for NoopExtractor
impl UnwindSafe for NoopExtractor
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> FromBody for Twhere
T: DeserializeOwned,
impl<T> FromBody for Twhere
T: DeserializeOwned,
§type Err = Error
type Err = Error
The error type returned by the conversion if it was unsuccessfull. When using the derive
macro, there is no way to trigger an error, so std::convert::Infallible is used here.
However, this might change in the future.
source§impl<T> FromState for Twhere
T: StateData,
impl<T> FromState for Twhere
T: StateData,
source§fn try_borrow_from(state: &State) -> Option<&T>
fn try_borrow_from(state: &State) -> Option<&T>
Tries to borrow a value from the
State
storage. Read moresource§fn try_borrow_mut_from(state: &mut State) -> Option<&mut T>
fn try_borrow_mut_from(state: &mut State) -> Option<&mut T>
Tries to mutably borrow a value from the
State
storage. Read moresource§fn borrow_mut_from(state: &mut State) -> &mut T
fn borrow_mut_from(state: &mut State) -> &mut T
Mutably borrows a value from the
State
storage. Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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