pub struct LoginRequest {
pub email: String,
pub password: String,
}Fields§
§email: String§password: StringTrait Implementations§
Source§impl Debug for LoginRequest
impl Debug for LoginRequest
Source§impl Serialize for LoginRequest
impl Serialize for LoginRequest
Source§impl UpdateRequest for LoginRequest
impl UpdateRequest for LoginRequest
Source§type Response = LoginResponse
type Response = LoginResponse
The type returned by the Scoop.it API. Read more
Source§type Output = LoginAccessToken
type Output = LoginAccessToken
The type returned by the client
fn endpoint(&self) -> Cow<'static, str>
Source§fn content_type() -> &'static str
fn content_type() -> &'static str
the content type of the post request, by default
application/x-www-form-urlencodedSource§fn body(&self) -> Result<Vec<u8>>
fn body(&self) -> Result<Vec<u8>>
The body as bytes, by default the type implementing this trait is serialized using serde_qs.
fn method(&self) -> Method
Auto Trait Implementations§
impl Freeze for LoginRequest
impl RefUnwindSafe for LoginRequest
impl Send for LoginRequest
impl Sync for LoginRequest
impl Unpin for LoginRequest
impl UnwindSafe for LoginRequest
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