vaultrs/api/token/
responses.rs1use std::collections::HashMap;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Deserialize, Debug, Serialize)]
8pub struct ListAccessorResponse {
9 pub keys: Vec<String>,
10}
11
12#[derive(Deserialize, Debug, Serialize)]
15pub struct LookupTokenResponse {
16 pub accessor: String,
17 pub creation_time: u64,
18 pub creation_ttl: u64,
19 pub display_name: String,
20 pub entity_id: String,
21 pub expire_time: Option<String>,
22 pub explicit_max_ttl: u64,
23 pub id: String,
24 pub identity_policies: Option<Vec<String>>,
25 pub issue_time: String,
26 pub meta: Option<HashMap<String, String>>,
27 pub num_uses: u64,
28 pub orphan: bool,
29 pub path: String,
30 pub policies: Vec<String>,
31 pub renewable: bool,
32 pub ttl: u64,
33}
34
35#[derive(Deserialize, Debug, Serialize)]
38pub struct ReadTokenRoleResponse {
39 pub allowed_entity_aliases: Option<Vec<String>>,
40 pub allowed_policies: Vec<String>,
41 pub disallowed_policies: Vec<String>,
42 pub explicit_max_ttl: u64,
43 pub name: String,
44 pub orphan: bool,
45 pub path_suffix: String,
46 pub period: u64,
47 pub renewable: bool,
48 pub token_explicit_max_ttl: u64,
49 pub token_period: u64,
50 pub token_type: String,
51}
52
53#[derive(Deserialize, Debug, Serialize)]
56pub struct ListTokenRolesResponse {
57 pub keys: Vec<String>,
58}