vaultrs/api/auth/userpass/
responses.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use serde::{Deserialize, Serialize};

/// Response from executing
/// [ReadUserRequest][crate::api::auth::userpass::requests::ReadUserRequest]
#[derive(Deserialize, Debug, Serialize)]
pub struct ReadUserResponse {
    pub token_bound_cidrs: Vec<String>,
    pub token_explicit_max_ttl: u64,
    pub token_no_default_policy: bool,
    pub token_num_uses: u64,
    pub token_ttl: u64,
    pub token_max_ttl: u64,
    pub token_period: u64,
    pub token_policies: Vec<String>,
    pub token_type: String,
}

/// Response from executing
/// [ListUsersRequest][crate::api::auth::userpass::requests::ListUsersRequest]
#[derive(Deserialize, Debug, Serialize)]
pub struct ListUsersResponse {
    pub keys: Vec<String>,
}