vaultrs/api/identity/group/
responses.rsuse std::collections::HashMap;
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Debug, Serialize)]
pub struct CreateGroupResponse {
pub id: String,
pub name: String,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct ReadGroupByIdResponse {
pub creation_time: String,
pub id: String,
pub last_update_time: String,
pub member_entity_ids: Option<Vec<String>>,
pub member_group_ids: Option<Vec<String>>,
pub parent_group_ids: Option<Vec<String>>,
pub metadata: Option<HashMap<String, String>>,
pub modify_index: u64,
pub namespace_id: String,
pub name: String,
pub policies: Option<Vec<String>>,
#[serde(rename = "type")]
pub group_type: String,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct ListGroupsByIdResponse {
pub keys: Vec<String>,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct ReadGroupByNameResponse {
pub creation_time: String,
pub id: String,
pub last_update_time: String,
pub member_entity_ids: Option<Vec<String>>,
pub member_group_ids: Option<Vec<String>>,
pub parent_group_ids: Option<Vec<String>>,
pub metadata: Option<HashMap<String, String>>,
pub modify_index: u64,
pub namespace_id: String,
pub name: String,
pub policies: Option<Vec<String>>,
#[serde(rename = "type")]
pub group_type: String,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct ListGroupsByNameResponse {
pub keys: Vec<String>,
}