nominal_api/conjure/objects/authorization/
get_user_orgs_response.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 PartialEq,
7 Eq,
8 PartialOrd,
9 Ord,
10 Hash
11)]
12#[serde(crate = "conjure_object::serde")]
13#[conjure_object::private::staged_builder::staged_builder]
14#[builder(crate = conjure_object::private::staged_builder, update, inline)]
15pub struct GetUserOrgsResponse {
16 #[builder(
17 default,
18 map(key(type = conjure_object::Uuid), value(type = String, into))
19 )]
20 #[serde(
21 rename = "orgs",
22 serialize_with = "conjure_object::private::serialize_map_keys_as_strings",
23 skip_serializing_if = "std::collections::BTreeMap::is_empty",
24 default
25 )]
26 orgs: std::collections::BTreeMap<conjure_object::Uuid, String>,
27}
28impl GetUserOrgsResponse {
29 #[inline]
31 pub fn new() -> Self {
32 Self::builder().build()
33 }
34 #[inline]
35 pub fn orgs(&self) -> &std::collections::BTreeMap<conjure_object::Uuid, String> {
36 &self.orgs
37 }
38}