#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct PassState {
#[builder(into)]
#[serde(rename = "comment")]
comment: String,
#[serde(rename = "closedBy")]
closed_by: super::super::super::rids::api::UserRid,
}
impl PassState {
#[inline]
pub fn new(
comment: impl Into<String>,
closed_by: super::super::super::rids::api::UserRid,
) -> Self {
Self::builder().comment(comment).closed_by(closed_by).build()
}
#[inline]
pub fn comment(&self) -> &str {
&*self.comment
}
#[inline]
pub fn closed_by(&self) -> &super::super::super::rids::api::UserRid {
&self.closed_by
}
}