#[non_exhaustive]pub struct CrossChannelBehaviorBuilder { /* private fields */ }
Expand description
A builder for CrossChannelBehavior
.
Implementations§
source§impl CrossChannelBehaviorBuilder
impl CrossChannelBehaviorBuilder
sourcepub fn behavior_type(self, input: BehaviorType) -> Self
pub fn behavior_type(self, input: BehaviorType) -> Self
Specifies the other channels that can be routed to an agent handling their current channel.
This field is required.sourcepub fn set_behavior_type(self, input: Option<BehaviorType>) -> Self
pub fn set_behavior_type(self, input: Option<BehaviorType>) -> Self
Specifies the other channels that can be routed to an agent handling their current channel.
sourcepub fn get_behavior_type(&self) -> &Option<BehaviorType>
pub fn get_behavior_type(&self) -> &Option<BehaviorType>
Specifies the other channels that can be routed to an agent handling their current channel.
sourcepub fn build(self) -> Result<CrossChannelBehavior, BuildError>
pub fn build(self) -> Result<CrossChannelBehavior, BuildError>
Consumes the builder and constructs a CrossChannelBehavior
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CrossChannelBehaviorBuilder
impl Clone for CrossChannelBehaviorBuilder
source§fn clone(&self) -> CrossChannelBehaviorBuilder
fn clone(&self) -> CrossChannelBehaviorBuilder
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 Debug for CrossChannelBehaviorBuilder
impl Debug for CrossChannelBehaviorBuilder
source§impl Default for CrossChannelBehaviorBuilder
impl Default for CrossChannelBehaviorBuilder
source§fn default() -> CrossChannelBehaviorBuilder
fn default() -> CrossChannelBehaviorBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CrossChannelBehaviorBuilder
impl PartialEq for CrossChannelBehaviorBuilder
source§fn eq(&self, other: &CrossChannelBehaviorBuilder) -> bool
fn eq(&self, other: &CrossChannelBehaviorBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CrossChannelBehaviorBuilder
Auto Trait Implementations§
impl Freeze for CrossChannelBehaviorBuilder
impl RefUnwindSafe for CrossChannelBehaviorBuilder
impl Send for CrossChannelBehaviorBuilder
impl Sync for CrossChannelBehaviorBuilder
impl Unpin for CrossChannelBehaviorBuilder
impl UnwindSafe for CrossChannelBehaviorBuilder
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.