#[non_exhaustive]pub struct SubSlotTypeCompositionBuilder { /* private fields */ }Expand description
A builder for SubSlotTypeComposition.
Implementations§
source§impl SubSlotTypeCompositionBuilder
impl SubSlotTypeCompositionBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Name of a constituent sub slot inside a composite slot.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
Name of a constituent sub slot inside a composite slot.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
Name of a constituent sub slot inside a composite slot.
sourcepub fn slot_type_id(self, input: impl Into<String>) -> Self
pub fn slot_type_id(self, input: impl Into<String>) -> Self
The unique identifier assigned to a slot type. This refers to either a built-in slot type or the unique slotTypeId of a custom slot type.
This field is required.sourcepub fn set_slot_type_id(self, input: Option<String>) -> Self
pub fn set_slot_type_id(self, input: Option<String>) -> Self
The unique identifier assigned to a slot type. This refers to either a built-in slot type or the unique slotTypeId of a custom slot type.
sourcepub fn get_slot_type_id(&self) -> &Option<String>
pub fn get_slot_type_id(&self) -> &Option<String>
The unique identifier assigned to a slot type. This refers to either a built-in slot type or the unique slotTypeId of a custom slot type.
sourcepub fn build(self) -> Result<SubSlotTypeComposition, BuildError>
pub fn build(self) -> Result<SubSlotTypeComposition, BuildError>
Consumes the builder and constructs a SubSlotTypeComposition.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SubSlotTypeCompositionBuilder
impl Clone for SubSlotTypeCompositionBuilder
source§fn clone(&self) -> SubSlotTypeCompositionBuilder
fn clone(&self) -> SubSlotTypeCompositionBuilder
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 SubSlotTypeCompositionBuilder
impl Default for SubSlotTypeCompositionBuilder
source§fn default() -> SubSlotTypeCompositionBuilder
fn default() -> SubSlotTypeCompositionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SubSlotTypeCompositionBuilder
impl PartialEq for SubSlotTypeCompositionBuilder
source§fn eq(&self, other: &SubSlotTypeCompositionBuilder) -> bool
fn eq(&self, other: &SubSlotTypeCompositionBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SubSlotTypeCompositionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SubSlotTypeCompositionBuilder
impl Send for SubSlotTypeCompositionBuilder
impl Sync for SubSlotTypeCompositionBuilder
impl Unpin for SubSlotTypeCompositionBuilder
impl UnwindSafe for SubSlotTypeCompositionBuilder
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.