nominal_api/conjure/objects/scout/datareview/api/
update_notes.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 UpdateNotes {
16 #[builder(into)]
17 #[serde(rename = "notes")]
18 notes: String,
19}
20impl UpdateNotes {
21 #[inline]
23 pub fn new(notes: impl Into<String>) -> Self {
24 Self::builder().notes(notes).build()
25 }
26 #[inline]
27 pub fn notes(&self) -> &str {
28 &*self.notes
29 }
30}