Skip to main content

nominal_api/conjure/objects/authentication/api/
get_coachmark_dismissals_request.rs

1/// Request to get coachmark dismissals
2#[derive(
3    Debug,
4    Clone,
5    conjure_object::serde::Serialize,
6    conjure_object::serde::Deserialize,
7    PartialEq,
8    Eq,
9    PartialOrd,
10    Ord,
11    Hash
12)]
13#[serde(crate = "conjure_object::serde")]
14#[conjure_object::private::staged_builder::staged_builder]
15#[builder(crate = conjure_object::private::staged_builder, update, inline)]
16pub struct GetCoachmarkDismissalsRequest {
17    #[builder(default, into)]
18    #[serde(rename = "coachmarkIds", skip_serializing_if = "Option::is_none", default)]
19    coachmark_ids: Option<Vec<String>>,
20}
21impl GetCoachmarkDismissalsRequest {
22    /// Constructs a new instance of the type.
23    #[inline]
24    pub fn new() -> Self {
25        Self::builder().build()
26    }
27    /// Optional list of coachmark IDs to filter by.
28    /// If empty, returns all dismissals for the user.
29    #[inline]
30    pub fn coachmark_ids(&self) -> Option<&[String]> {
31        self.coachmark_ids.as_ref().map(|o| &**o)
32    }
33}