#[non_exhaustive]pub struct HoursOfOperationConfigBuilder { /* private fields */ }
Expand description
A builder for HoursOfOperationConfig
.
Implementations§
source§impl HoursOfOperationConfigBuilder
impl HoursOfOperationConfigBuilder
sourcepub fn day(self, input: HoursOfOperationDays) -> Self
pub fn day(self, input: HoursOfOperationDays) -> Self
The day that the hours of operation applies to.
This field is required.sourcepub fn set_day(self, input: Option<HoursOfOperationDays>) -> Self
pub fn set_day(self, input: Option<HoursOfOperationDays>) -> Self
The day that the hours of operation applies to.
sourcepub fn get_day(&self) -> &Option<HoursOfOperationDays>
pub fn get_day(&self) -> &Option<HoursOfOperationDays>
The day that the hours of operation applies to.
sourcepub fn start_time(self, input: HoursOfOperationTimeSlice) -> Self
pub fn start_time(self, input: HoursOfOperationTimeSlice) -> Self
The start time that your contact center opens.
This field is required.sourcepub fn set_start_time(self, input: Option<HoursOfOperationTimeSlice>) -> Self
pub fn set_start_time(self, input: Option<HoursOfOperationTimeSlice>) -> Self
The start time that your contact center opens.
sourcepub fn get_start_time(&self) -> &Option<HoursOfOperationTimeSlice>
pub fn get_start_time(&self) -> &Option<HoursOfOperationTimeSlice>
The start time that your contact center opens.
sourcepub fn end_time(self, input: HoursOfOperationTimeSlice) -> Self
pub fn end_time(self, input: HoursOfOperationTimeSlice) -> Self
The end time that your contact center closes.
This field is required.sourcepub fn set_end_time(self, input: Option<HoursOfOperationTimeSlice>) -> Self
pub fn set_end_time(self, input: Option<HoursOfOperationTimeSlice>) -> Self
The end time that your contact center closes.
sourcepub fn get_end_time(&self) -> &Option<HoursOfOperationTimeSlice>
pub fn get_end_time(&self) -> &Option<HoursOfOperationTimeSlice>
The end time that your contact center closes.
sourcepub fn build(self) -> Result<HoursOfOperationConfig, BuildError>
pub fn build(self) -> Result<HoursOfOperationConfig, BuildError>
Consumes the builder and constructs a HoursOfOperationConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for HoursOfOperationConfigBuilder
impl Clone for HoursOfOperationConfigBuilder
source§fn clone(&self) -> HoursOfOperationConfigBuilder
fn clone(&self) -> HoursOfOperationConfigBuilder
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 HoursOfOperationConfigBuilder
impl Default for HoursOfOperationConfigBuilder
source§fn default() -> HoursOfOperationConfigBuilder
fn default() -> HoursOfOperationConfigBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HoursOfOperationConfigBuilder
impl PartialEq for HoursOfOperationConfigBuilder
source§fn eq(&self, other: &HoursOfOperationConfigBuilder) -> bool
fn eq(&self, other: &HoursOfOperationConfigBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HoursOfOperationConfigBuilder
Auto Trait Implementations§
impl Freeze for HoursOfOperationConfigBuilder
impl RefUnwindSafe for HoursOfOperationConfigBuilder
impl Send for HoursOfOperationConfigBuilder
impl Sync for HoursOfOperationConfigBuilder
impl Unpin for HoursOfOperationConfigBuilder
impl UnwindSafe for HoursOfOperationConfigBuilder
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.