pub struct ValidateUsernameResponse {
pub is_valid: bool,
pub is_unique: Option<bool>,
}
Expand description
| Name | Type | Description | | isValid | boolean | | | isUnique | boolean | |
Fields§
§is_valid: bool
Whether the username is valid (registered).
is_unique: Option<bool>
Whether the username is unique (already used).
Trait Implementations§
Source§impl Clone for ValidateUsernameResponse
impl Clone for ValidateUsernameResponse
Source§fn clone(&self) -> ValidateUsernameResponse
fn clone(&self) -> ValidateUsernameResponse
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 ValidateUsernameResponse
impl Debug for ValidateUsernameResponse
Source§impl<'de> Deserialize<'de> for ValidateUsernameResponse
impl<'de> Deserialize<'de> for ValidateUsernameResponse
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
Auto Trait Implementations§
impl Freeze for ValidateUsernameResponse
impl RefUnwindSafe for ValidateUsernameResponse
impl Send for ValidateUsernameResponse
impl Sync for ValidateUsernameResponse
impl Unpin for ValidateUsernameResponse
impl UnwindSafe for ValidateUsernameResponse
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