vaultrs/api/identity/entity_alias/
responses.rs1use std::collections::HashMap;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Deserialize, Debug, Serialize)]
8pub struct CreateEntityAliasResponse {
9 pub canonical_id: String,
10 pub id: String,
11}
12
13#[derive(Deserialize, Debug, Serialize)]
16pub struct ReadEntityAliasByIdResponse {
17 pub creation_time: String,
18 pub canonical_id: String,
19 pub custom_metadata: Option<HashMap<String, String>>,
20 pub id: String,
21 pub last_update_time: String,
22 pub local: bool,
23 pub metadata: Option<HashMap<String, String>>,
24 pub mount_accessor: String,
25 pub mount_path: String,
26 pub mount_type: String,
27 pub name: String,
28}
29
30#[derive(Deserialize, Debug, Serialize)]
33pub struct ListEntityAliasesByIdResponse {
34 pub key_info: HashMap<String, KeyInfo>,
35 pub keys: Vec<String>,
36}
37
38#[derive(Deserialize, Debug, Serialize)]
39pub struct KeyInfo {
40 pub canonical_id: String,
41 pub custom_metadata: Option<HashMap<String, String>>,
42 pub local: bool,
43 pub mount_accessor: String,
44 pub mount_path: String,
45 pub mount_type: String,
46 pub name: String,
47}