pub struct LoginRequest<'a> {
pub username: &'a str,
pub password: &'a str,
}Expand description
Represents the data required to log in an existing user.
This struct is typically serialized and sent as the body of a login request.
It includes username and password.
Fields§
§username: &'a str§password: &'a strTrait Implementations§
Source§impl<'a> Debug for LoginRequest<'a>
impl<'a> Debug for LoginRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for LoginRequest<'a>
impl<'a> RefUnwindSafe for LoginRequest<'a>
impl<'a> Send for LoginRequest<'a>
impl<'a> Sync for LoginRequest<'a>
impl<'a> Unpin for LoginRequest<'a>
impl<'a> UnwindSafe for LoginRequest<'a>
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