pub struct LoginScheme {
pub username: String,
pub pwd: String,
}Expand description
Data transfer object (DTO) for user login credentials.
This struct defines the payload sent to the backend when a user attempts to log in.
§Fields
username: The username provided by the user.pwd: The password provided by the user.
Fields§
§username: String§pwd: StringTrait Implementations§
Source§impl Clone for LoginScheme
impl Clone for LoginScheme
Source§fn clone(&self) -> LoginScheme
fn clone(&self) -> LoginScheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoginScheme
impl Debug for LoginScheme
Source§impl<'de> Deserialize<'de> for LoginScheme
impl<'de> Deserialize<'de> for LoginScheme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LoginScheme
impl PartialEq for LoginScheme
Source§impl Serialize for LoginScheme
impl Serialize for LoginScheme
impl StructuralPartialEq for LoginScheme
Auto Trait Implementations§
impl Freeze for LoginScheme
impl RefUnwindSafe for LoginScheme
impl Send for LoginScheme
impl Sync for LoginScheme
impl Unpin for LoginScheme
impl UnwindSafe for LoginScheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
§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>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.