pub struct DescribeUserScramCredentialsResult { /* private fields */ }Expand description
The result of the Admin::describe_user_scram_credentials call.
Implementations§
Source§impl DescribeUserScramCredentialsResult
impl DescribeUserScramCredentialsResult
Sourcepub fn all(
&self,
) -> KafkaFuture<HashMap<String, UserScramCredentialsDescription>>
pub fn all( &self, ) -> KafkaFuture<HashMap<String, UserScramCredentialsDescription>>
Returns a future for the results of all described users, keyed by user name. The future completes successfully only if all such user descriptions complete successfully.
A successfully
described user is one with either a NONE or a RESOURCE_NOT_FOUND
error code; the first user with any other error code fails the whole
future.
Sourcepub fn users(&self) -> KafkaFuture<Vec<String>>
pub fn users(&self) -> KafkaFuture<Vec<String>>
Returns a future indicating the distinct users that meet the request criteria and that have at least one credential. The future will not complete successfully if the user is not authorized to perform the describe operation; otherwise, it will complete successfully as long as the list of users with credentials can be successfully determined within some hard-coded timeout period. Note that the returned list will not include users that do not exist/have no credentials: a request to describe an explicit list of users, none of which existed/had a credential, will result in a future that returns an empty list being returned here. A returned list will include users that have a credential but that could not be described.
Sourcepub fn description(
&self,
user_name: &str,
) -> KafkaFuture<UserScramCredentialsDescription>
pub fn description( &self, user_name: &str, ) -> KafkaFuture<UserScramCredentialsDescription>
Returns a future indicating the description results for the given user. The future will
complete with an error if the future returned by users completes with an
error. Note that if the given user does not exist in the list of described users then the
returned future will complete with an error answering
Error::is_resource_not_found_error.
§Arguments
user_name- the name of the user description being requested
Trait Implementations§
Source§impl Clone for DescribeUserScramCredentialsResult
impl Clone for DescribeUserScramCredentialsResult
Source§fn clone(&self) -> DescribeUserScramCredentialsResult
fn clone(&self) -> DescribeUserScramCredentialsResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more