Struct salvo_oapi::extract::QueryParam
source · pub struct QueryParam<T, const REQUIRED: bool>(/* private fields */);Expand description
Represents the parameters passed by the URI path.
Implementations§
source§impl<T> QueryParam<T, true>
impl<T> QueryParam<T, true>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes self and returns the value of the parameter.
source§impl<T> QueryParam<T, false>
impl<T> QueryParam<T, false>
sourcepub fn into_inner(self) -> Option<T>
pub fn into_inner(self) -> Option<T>
Consumes self and returns the value of the parameter.
Trait Implementations§
source§impl<T> Deref for QueryParam<T, false>
impl<T> Deref for QueryParam<T, false>
source§impl<T> Deref for QueryParam<T, true>
impl<T> Deref for QueryParam<T, true>
source§impl<T> DerefMut for QueryParam<T, false>
impl<T> DerefMut for QueryParam<T, false>
source§impl<T> DerefMut for QueryParam<T, true>
impl<T> DerefMut for QueryParam<T, true>
source§impl<'de, T, const R: bool> Deserialize<'de> for QueryParam<T, R>where
T: Deserialize<'de>,
impl<'de, T, const R: bool> Deserialize<'de> for QueryParam<T, R>where
T: Deserialize<'de>,
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> Display for QueryParam<T, true>where
T: Display,
impl<T> Display for QueryParam<T, true>where
T: Display,
source§impl<T, const R: bool> EndpointArgRegister for QueryParam<T, R>where
T: ToSchema,
impl<T, const R: bool> EndpointArgRegister for QueryParam<T, R>where
T: ToSchema,
source§impl<'ex, T> Extractible<'ex> for QueryParam<T, false>where
T: Deserialize<'ex>,
impl<'ex, T> Extractible<'ex> for QueryParam<T, false>where
T: Deserialize<'ex>,
source§async fn extract(_req: &'ex mut Request) -> Result<Self, ParseError>
async fn extract(_req: &'ex mut Request) -> Result<Self, ParseError>
Extract data from request. Read more
source§async fn extract_with_arg(
req: &'ex mut Request,
arg: &str,
) -> Result<Self, ParseError>
async fn extract_with_arg( req: &'ex mut Request, arg: &str, ) -> Result<Self, ParseError>
Extract data from request with a argument. This function used in macros internal.
source§impl<'ex, T> Extractible<'ex> for QueryParam<T, true>where
T: Deserialize<'ex>,
impl<'ex, T> Extractible<'ex> for QueryParam<T, true>where
T: Deserialize<'ex>,
source§async fn extract(_req: &'ex mut Request) -> Result<Self, ParseError>
async fn extract(_req: &'ex mut Request) -> Result<Self, ParseError>
Extract data from request. Read more
source§async fn extract_with_arg(
req: &'ex mut Request,
arg: &str,
) -> Result<Self, ParseError>
async fn extract_with_arg( req: &'ex mut Request, arg: &str, ) -> Result<Self, ParseError>
Extract data from request with a argument. This function used in macros internal.
Auto Trait Implementations§
impl<T, const REQUIRED: bool> Freeze for QueryParam<T, REQUIRED>where
T: Freeze,
impl<T, const REQUIRED: bool> RefUnwindSafe for QueryParam<T, REQUIRED>where
T: RefUnwindSafe,
impl<T, const REQUIRED: bool> Send for QueryParam<T, REQUIRED>where
T: Send,
impl<T, const REQUIRED: bool> Sync for QueryParam<T, REQUIRED>where
T: Sync,
impl<T, const REQUIRED: bool> Unpin for QueryParam<T, REQUIRED>where
T: Unpin,
impl<T, const REQUIRED: bool> UnwindSafe for QueryParam<T, REQUIRED>where
T: UnwindSafe,
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