ListUsers()

Lists user accounts visible to the caller.

pub async fn list_users(&self, request: ListUsersRequest) -> Result<ListUsersResponse>

Request Syntax

let request = ListUsersRequest::builder()
    .build()?;

REQUEST FIELDS:

This request takes no fields.

RETURN TYPE:

Result

RETURNS:

A ListUsersResponse containing the names of the users. Returns an Error if the operation fails.

ListUsersResponse
    usernames() // -> &[String]

METHODS:

  • usernames() (&[String]) -

    The names of the users.

Example

let request = ListUsersRequest::builder().build()?;
let resp = client.list_users(request).await?;
for name in resp.usernames() {
    println!("user: {name}");
}

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?