Struct etcd_client::AuthClient [−][src]
#[repr(transparent)]pub struct AuthClient { /* fields omitted */ }
Client for Auth operations.
Implementations
impl AuthClient[src]
impl AuthClient[src]pub async fn auth_enable(&mut self) -> Result<AuthEnableResponse, Error>[src]
Enables authentication.
pub async fn auth_disable(&mut self) -> Result<AuthDisableResponse, Error>[src]
Disables authentication.
pub async fn authenticate(
&mut self,
name: String,
password: String
) -> Result<AuthenticateResponse, Error>[src]
&mut self,
name: String,
password: String
) -> Result<AuthenticateResponse, Error>
Processes an authenticate request.
pub async fn role_add(
&mut self,
name: impl Into<String>
) -> Result<RoleAddResponse, Error>[src]
&mut self,
name: impl Into<String>
) -> Result<RoleAddResponse, Error>
Adds role
pub async fn role_delete(
&mut self,
name: impl Into<String>
) -> Result<RoleDeleteResponse, Error>[src]
&mut self,
name: impl Into<String>
) -> Result<RoleDeleteResponse, Error>
Deletes role
pub async fn role_get(
&mut self,
name: impl Into<String>
) -> Result<RoleGetResponse, Error>[src]
&mut self,
name: impl Into<String>
) -> Result<RoleGetResponse, Error>
Gets role
pub async fn role_list(&mut self) -> Result<RoleListResponse, Error>[src]
Lists role
pub async fn role_grant_permission(
&mut self,
name: impl Into<String>,
perm: Permission
) -> Result<RoleGrantPermissionResponse, Error>[src]
&mut self,
name: impl Into<String>,
perm: Permission
) -> Result<RoleGrantPermissionResponse, Error>
Grants role permission
pub async fn role_revoke_permission(
&mut self,
name: impl Into<String>,
key: impl Into<Vec<u8>>,
options: Option<RoleRevokePermissionOptions>
) -> Result<RoleRevokePermissionResponse, Error>[src]
&mut self,
name: impl Into<String>,
key: impl Into<Vec<u8>>,
options: Option<RoleRevokePermissionOptions>
) -> Result<RoleRevokePermissionResponse, Error>
Revokes role permission
pub async fn user_add(
&mut self,
name: impl Into<String>,
password: impl Into<String>,
options: Option<UserAddOptions>
) -> Result<UserAddResponse, Error>[src]
&mut self,
name: impl Into<String>,
password: impl Into<String>,
options: Option<UserAddOptions>
) -> Result<UserAddResponse, Error>
Adds user
pub async fn user_get(
&mut self,
name: impl Into<String>
) -> Result<UserGetResponse, Error>[src]
&mut self,
name: impl Into<String>
) -> Result<UserGetResponse, Error>
Gets user
pub async fn user_list(&mut self) -> Result<UserListResponse, Error>[src]
Lists user
pub async fn user_delete(
&mut self,
name: impl Into<String>
) -> Result<UserDeleteResponse, Error>[src]
&mut self,
name: impl Into<String>
) -> Result<UserDeleteResponse, Error>
Deletes user
pub async fn user_change_password(
&mut self,
name: impl Into<String>,
password: impl Into<String>
) -> Result<UserChangePasswordResponse, Error>[src]
&mut self,
name: impl Into<String>,
password: impl Into<String>
) -> Result<UserChangePasswordResponse, Error>
Change user’s password
pub async fn user_grant_role(
&mut self,
name: impl Into<String>,
role: impl Into<String>
) -> Result<UserGrantRoleResponse, Error>[src]
&mut self,
name: impl Into<String>,
role: impl Into<String>
) -> Result<UserGrantRoleResponse, Error>
Grant role for an user
pub async fn user_revoke_role(
&mut self,
name: impl Into<String>,
role: impl Into<String>
) -> Result<UserRevokeRoleResponse, Error>[src]
&mut self,
name: impl Into<String>,
role: impl Into<String>
) -> Result<UserRevokeRoleResponse, Error>
Revoke role for an user
Trait Implementations
impl Clone for AuthClient[src]
impl Clone for AuthClient[src]fn clone(&self) -> AuthClient[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for AuthClient
impl !RefUnwindSafe for AuthClientimpl Send for AuthClient
impl Send for AuthClientimpl Sync for AuthClient
impl Sync for AuthClientimpl Unpin for AuthClient
impl Unpin for AuthClientimpl !UnwindSafe for AuthClient
impl !UnwindSafe for AuthClientBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> IntoRequest<T> for T[src]
impl<T> IntoRequest<T> for T[src]pub fn into_request(self) -> Request<T>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,