mirror of https://github.com/rwf2/Rocket.git
parent
3a76fe03db
commit
31cbe65704
|
@ -430,12 +430,10 @@ impl<'r> Request<'r> {
|
|||
///
|
||||
/// # Example
|
||||
///
|
||||
/// Invoke the `Json<T>` request guard.
|
||||
/// Assuming a `User` request guard exists, invoke it:
|
||||
///
|
||||
/// ```rust,ignore
|
||||
/// use rocket_contrib::Json;
|
||||
///
|
||||
/// let outcome = request.guard::<Json<T>>();
|
||||
/// let outcome = request.guard::<User>();
|
||||
/// ```
|
||||
///
|
||||
/// Retrieve managed state inside of a guard implementation:
|
||||
|
|
Loading…
Reference in New Issue