Skip to main content

nominal_api/conjure/objects/event/
get_events.rs

1#[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 GetEvents {
16    #[builder(default, set(item(type = conjure_object::Uuid)))]
17    #[serde(
18        rename = "uuids",
19        skip_serializing_if = "std::collections::BTreeSet::is_empty",
20        default
21    )]
22    uuids: std::collections::BTreeSet<conjure_object::Uuid>,
23}
24impl GetEvents {
25    /// Constructs a new instance of the type.
26    #[inline]
27    pub fn new() -> Self {
28        Self::builder().build()
29    }
30    #[inline]
31    pub fn uuids(&self) -> &std::collections::BTreeSet<conjure_object::Uuid> {
32        &self.uuids
33    }
34}