Struct autoendpoint::extractors::registration_path_args_with_uaid::RegistrationPathArgsWithUaid
source · pub struct RegistrationPathArgsWithUaid {
pub router_type: RouterType,
pub app_id: String,
pub user: User,
}
Expand description
An extension of RegistrationPathArgs
which requires a uaid
path arg.
The uaid
is verified by checking if the user exists in the database.
Fields§
§router_type: RouterType
§app_id: String
§user: User
Trait Implementations§
source§impl FromRequest for RegistrationPathArgsWithUaid
impl FromRequest for RegistrationPathArgsWithUaid
source§type Future = Pin<Box<dyn Future<Output = Result<RegistrationPathArgsWithUaid, <RegistrationPathArgsWithUaid as FromRequest>::Error>>>>
type Future = Pin<Box<dyn Future<Output = Result<RegistrationPathArgsWithUaid, <RegistrationPathArgsWithUaid as FromRequest>::Error>>>>
Future that resolves to a
Self
. Read moresource§fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
Create a
Self
from request parts asynchronously.Auto Trait Implementations§
impl Freeze for RegistrationPathArgsWithUaid
impl RefUnwindSafe for RegistrationPathArgsWithUaid
impl Send for RegistrationPathArgsWithUaid
impl Sync for RegistrationPathArgsWithUaid
impl Unpin for RegistrationPathArgsWithUaid
impl UnwindSafe for RegistrationPathArgsWithUaid
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§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