Struct etcd::auth::UserUpdate
source · pub struct UserUpdate { /* private fields */ }
Expand description
Parameters used to update an existing etcd user.
Implementations§
source§impl UserUpdate
impl UserUpdate
sourcepub fn new<N>(name: N) -> Selfwhere
N: Into<String>,
pub fn new<N>(name: N) -> Selfwhere
N: Into<String>,
Creates a new UserUpdate
for the given user.
sourcepub fn update_password<P>(&mut self, password: P)where
P: Into<String>,
pub fn update_password<P>(&mut self, password: P)where
P: Into<String>,
Updates the user’s password.
sourcepub fn grant_role<R>(&mut self, role: R)where
R: Into<String>,
pub fn grant_role<R>(&mut self, role: R)where
R: Into<String>,
Grants the given role to the user.
sourcepub fn revoke_role<R>(&mut self, role: R)where
R: Into<String>,
pub fn revoke_role<R>(&mut self, role: R)where
R: Into<String>,
Revokes the given role from the user.
Trait Implementations§
source§impl Clone for UserUpdate
impl Clone for UserUpdate
source§fn clone(&self) -> UserUpdate
fn clone(&self) -> UserUpdate
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 Debug for UserUpdate
impl Debug for UserUpdate
source§impl<'de> Deserialize<'de> for UserUpdate
impl<'de> Deserialize<'de> for UserUpdate
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 Hash for UserUpdate
impl Hash for UserUpdate
source§impl PartialEq<UserUpdate> for UserUpdate
impl PartialEq<UserUpdate> for UserUpdate
source§fn eq(&self, other: &UserUpdate) -> bool
fn eq(&self, other: &UserUpdate) -> bool
source§impl Serialize for UserUpdate
impl Serialize for UserUpdate
impl Eq for UserUpdate
impl StructuralEq for UserUpdate
impl StructuralPartialEq for UserUpdate
Auto Trait Implementations§
impl RefUnwindSafe for UserUpdate
impl Send for UserUpdate
impl Sync for UserUpdate
impl Unpin for UserUpdate
impl UnwindSafe for UserUpdate
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.