Skip to main content

nominal_api/conjure/objects/security/api/workspace/
procedure_settings_v1.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 ProcedureSettingsV1 {
16    #[builder(default, list(item(type = conjure_object::ResourceIdentifier)))]
17    #[serde(
18        rename = "workspaceProcedures",
19        skip_serializing_if = "Vec::is_empty",
20        default
21    )]
22    workspace_procedures: Vec<conjure_object::ResourceIdentifier>,
23}
24impl ProcedureSettingsV1 {
25    /// Constructs a new instance of the type.
26    #[inline]
27    pub fn new() -> Self {
28        Self::builder().build()
29    }
30    /// A list of procedures that are elevated to the workspace-level.
31    /// They will be available for execution in a top-level context, rather
32    /// than just from the procedure details page.
33    #[inline]
34    pub fn workspace_procedures(&self) -> &[conjure_object::ResourceIdentifier] {
35        &*self.workspace_procedures
36    }
37}