Struct etcd::auth::RoleUpdate
source · pub struct RoleUpdate { /* private fields */ }
Expand description
Parameters used to update an existing authorization role.
Implementations§
source§impl RoleUpdate
impl RoleUpdate
sourcepub fn new<R>(role: R) -> Selfwhere
R: Into<String>,
pub fn new<R>(role: R) -> Selfwhere
R: Into<String>,
Creates a new RoleUpdate
for the given role.
sourcepub fn grant_kv_read_permission<K>(&mut self, key: K)where
K: Into<String>,
pub fn grant_kv_read_permission<K>(&mut self, key: K)where
K: Into<String>,
Grants read permission for a key in etcd’s key-value store to this role.
sourcepub fn grant_kv_write_permission<K>(&mut self, key: K)where
K: Into<String>,
pub fn grant_kv_write_permission<K>(&mut self, key: K)where
K: Into<String>,
Grants write permission for a key in etcd’s key-value store to this role.
sourcepub fn revoke_kv_read_permission<K>(&mut self, key: K)where
K: Into<String>,
pub fn revoke_kv_read_permission<K>(&mut self, key: K)where
K: Into<String>,
Revokes read permission for a key in etcd’s key-value store from this role.
sourcepub fn revoke_kv_write_permission<K>(&mut self, key: K)where
K: Into<String>,
pub fn revoke_kv_write_permission<K>(&mut self, key: K)where
K: Into<String>,
Revokes write permission for a key in etcd’s key-value store from this role.
Trait Implementations§
source§impl Clone for RoleUpdate
impl Clone for RoleUpdate
source§fn clone(&self) -> RoleUpdate
fn clone(&self) -> RoleUpdate
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 RoleUpdate
impl Debug for RoleUpdate
source§impl<'de> Deserialize<'de> for RoleUpdate
impl<'de> Deserialize<'de> for RoleUpdate
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 RoleUpdate
impl Hash for RoleUpdate
source§impl PartialEq<RoleUpdate> for RoleUpdate
impl PartialEq<RoleUpdate> for RoleUpdate
source§fn eq(&self, other: &RoleUpdate) -> bool
fn eq(&self, other: &RoleUpdate) -> bool
source§impl Serialize for RoleUpdate
impl Serialize for RoleUpdate
impl Eq for RoleUpdate
impl StructuralEq for RoleUpdate
impl StructuralPartialEq for RoleUpdate
Auto Trait Implementations§
impl RefUnwindSafe for RoleUpdate
impl Send for RoleUpdate
impl Sync for RoleUpdate
impl Unpin for RoleUpdate
impl UnwindSafe for RoleUpdate
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.