Struct salvo_oapi::extract::PathParam
source · pub struct PathParam<T>(pub T);Expand description
Represents the parameters passed by the URI path.
Tuple Fields§
§0: TImplementations§
source§impl<T> PathParam<T>
impl<T> PathParam<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes self and returns the value of the parameter.
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for PathParam<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PathParam<T>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> EndpointArgRegister for PathParam<T>where
T: ToSchema,
impl<T> EndpointArgRegister for PathParam<T>where
T: ToSchema,
source§impl<'ex, T> Extractible<'ex> for PathParam<T>where
T: Deserialize<'ex>,
impl<'ex, T> Extractible<'ex> for PathParam<T>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> Freeze for PathParam<T>where
T: Freeze,
impl<T> RefUnwindSafe for PathParam<T>where
T: RefUnwindSafe,
impl<T> Send for PathParam<T>where
T: Send,
impl<T> Sync for PathParam<T>where
T: Sync,
impl<T> Unpin for PathParam<T>where
T: Unpin,
impl<T> UnwindSafe for PathParam<T>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