Enum gitlab::api::users::NewUserPassword
source · #[non_exhaustive]pub enum NewUserPassword<'a> {
Password(Cow<'a, str>),
Reset,
Random,
ResetRandom,
}
Expand description
Password settings for a new user.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Password(Cow<'a, str>)
A literal password.
Reset
Send a password reset email to the user.
Random
Set a random initial password.
ResetRandom
Set a random initial password and send a reset email.
Trait Implementations§
source§impl<'a> Clone for NewUserPassword<'a>
impl<'a> Clone for NewUserPassword<'a>
source§fn clone(&self) -> NewUserPassword<'a>
fn clone(&self) -> NewUserPassword<'a>
Returns a copy 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<'a> Debug for NewUserPassword<'a>
impl<'a> Debug for NewUserPassword<'a>
source§impl<'a, T> From<T> for NewUserPassword<'a>
impl<'a, T> From<T> for NewUserPassword<'a>
source§impl<'a> PartialEq for NewUserPassword<'a>
impl<'a> PartialEq for NewUserPassword<'a>
source§fn eq(&self, other: &NewUserPassword<'a>) -> bool
fn eq(&self, other: &NewUserPassword<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for NewUserPassword<'a>
impl<'a> StructuralPartialEq for NewUserPassword<'a>
Auto Trait Implementations§
impl<'a> Freeze for NewUserPassword<'a>
impl<'a> RefUnwindSafe for NewUserPassword<'a>
impl<'a> Send for NewUserPassword<'a>
impl<'a> Sync for NewUserPassword<'a>
impl<'a> Unpin for NewUserPassword<'a>
impl<'a> UnwindSafe for NewUserPassword<'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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.