pub struct Request {
pub password: String,
pub medium: Option<Medium>,
pub login_type: LoginType,
pub user: String,
pub address: Option<String>,
pub device_id: Option<String>,
}
Expand description
Data for a request to this API endpoint.
Fields
password: String
The user’s password.
medium: Option<Medium>
When logging in using a third party identifier, the medium of the identifier.
login_type: LoginType
The authentication mechanism.
user: String
The fully qualified user ID or just local part of the user ID.
address: Option<String>
Third party identifier for the user.
device_id: Option<String>
ID of the client device
Trait Implementations
sourceimpl FutureFrom<Request<Body>> for Request
impl FutureFrom<Request<Body>> for Request
type Future = Box<dyn Future<Error = <Request as FutureFrom<Request<Body>>>::Error, Item = Request> + Send + 'static, Global>
type Future = Box<dyn Future<Error = <Request as FutureFrom<Request<Body>>>::Error, Item = Request> + Send + 'static, Global>
The future for the conversion.
sourcefn future_from(
request: Request<Body>
) -> <Request as FutureFrom<Request<Body>>>::Future
fn future_from(
request: Request<Body>
) -> <Request as FutureFrom<Request<Body>>>::Future
Consume the given value, beginning the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more