#[non_exhaustive]pub struct CreateCaseActionDefinitionBuilder { /* private fields */ }
Expand description
A builder for CreateCaseActionDefinition
.
Implementations§
source§impl CreateCaseActionDefinitionBuilder
impl CreateCaseActionDefinitionBuilder
sourcepub fn fields(self, input: FieldValue) -> Self
pub fn fields(self, input: FieldValue) -> Self
Appends an item to fields
.
To override the contents of this collection use set_fields
.
An array of objects with Field ID
and Value
data.
sourcepub fn set_fields(self, input: Option<Vec<FieldValue>>) -> Self
pub fn set_fields(self, input: Option<Vec<FieldValue>>) -> Self
An array of objects with Field ID
and Value
data.
sourcepub fn get_fields(&self) -> &Option<Vec<FieldValue>>
pub fn get_fields(&self) -> &Option<Vec<FieldValue>>
An array of objects with Field ID
and Value
data.
sourcepub fn template_id(self, input: impl Into<String>) -> Self
pub fn template_id(self, input: impl Into<String>) -> Self
A unique identifier of a template.
This field is required.sourcepub fn set_template_id(self, input: Option<String>) -> Self
pub fn set_template_id(self, input: Option<String>) -> Self
A unique identifier of a template.
sourcepub fn get_template_id(&self) -> &Option<String>
pub fn get_template_id(&self) -> &Option<String>
A unique identifier of a template.
sourcepub fn build(self) -> Result<CreateCaseActionDefinition, BuildError>
pub fn build(self) -> Result<CreateCaseActionDefinition, BuildError>
Consumes the builder and constructs a CreateCaseActionDefinition
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateCaseActionDefinitionBuilder
impl Clone for CreateCaseActionDefinitionBuilder
source§fn clone(&self) -> CreateCaseActionDefinitionBuilder
fn clone(&self) -> CreateCaseActionDefinitionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for CreateCaseActionDefinitionBuilder
impl Default for CreateCaseActionDefinitionBuilder
source§fn default() -> CreateCaseActionDefinitionBuilder
fn default() -> CreateCaseActionDefinitionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CreateCaseActionDefinitionBuilder
impl PartialEq for CreateCaseActionDefinitionBuilder
source§fn eq(&self, other: &CreateCaseActionDefinitionBuilder) -> bool
fn eq(&self, other: &CreateCaseActionDefinitionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateCaseActionDefinitionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CreateCaseActionDefinitionBuilder
impl Send for CreateCaseActionDefinitionBuilder
impl Sync for CreateCaseActionDefinitionBuilder
impl Unpin for CreateCaseActionDefinitionBuilder
impl UnwindSafe for CreateCaseActionDefinitionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.