nominal_api/conjure/objects/scout/workbookcommon/api/
run_alignment.rs1#[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 RunAlignment {
17 #[serde(rename = "alignTo")]
18 align_to: super::RunAlignTo,
19 #[serde(rename = "targetRunRid")]
20 target_run_rid: super::super::super::run::api::RunRid,
21}
22impl RunAlignment {
23 #[inline]
25 pub fn new(
26 align_to: super::RunAlignTo,
27 target_run_rid: super::super::super::run::api::RunRid,
28 ) -> Self {
29 Self::builder().align_to(align_to).target_run_rid(target_run_rid).build()
30 }
31 #[inline]
32 pub fn align_to(&self) -> &super::RunAlignTo {
33 &self.align_to
34 }
35 #[inline]
36 pub fn target_run_rid(&self) -> &super::super::super::run::api::RunRid {
37 &self.target_run_rid
38 }
39}