Struct aws_sdk_connect::types::UserData
source · #[non_exhaustive]pub struct UserData {
pub user: Option<UserReference>,
pub routing_profile: Option<RoutingProfileReference>,
pub hierarchy_path: Option<HierarchyPathReference>,
pub status: Option<AgentStatusReference>,
pub available_slots_by_channel: Option<HashMap<Channel, i32>>,
pub max_slots_by_channel: Option<HashMap<Channel, i32>>,
pub active_slots_by_channel: Option<HashMap<Channel, i32>>,
pub contacts: Option<Vec<AgentContactReference>>,
pub next_status: Option<String>,
}
Expand description
Data for a user.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.user: Option<UserReference>
Information about the user for the data that is returned. It contains the resourceId
and ARN of the user.
routing_profile: Option<RoutingProfileReference>
Information about the routing profile that is assigned to the user.
hierarchy_path: Option<HierarchyPathReference>
Contains information about the levels of a hierarchy group assigned to a user.
status: Option<AgentStatusReference>
The status of the agent that they manually set in their Contact Control Panel (CCP), or that the supervisor manually changes in the real-time metrics report.
available_slots_by_channel: Option<HashMap<Channel, i32>>
A map of available slots by channel. The key is a channel name. The value is an integer: the available number of slots.
max_slots_by_channel: Option<HashMap<Channel, i32>>
A map of maximum slots by channel. The key is a channel name. The value is an integer: the maximum number of slots. This is calculated from MediaConcurrency of the RoutingProfile
assigned to the agent.
active_slots_by_channel: Option<HashMap<Channel, i32>>
A map of active slots by channel. The key is a channel name. The value is an integer: the number of active slots.
contacts: Option<Vec<AgentContactReference>>
A list of contact reference information.
next_status: Option<String>
The Next status of the agent.
Implementations§
source§impl UserData
impl UserData
sourcepub fn user(&self) -> Option<&UserReference>
pub fn user(&self) -> Option<&UserReference>
Information about the user for the data that is returned. It contains the resourceId
and ARN of the user.
sourcepub fn routing_profile(&self) -> Option<&RoutingProfileReference>
pub fn routing_profile(&self) -> Option<&RoutingProfileReference>
Information about the routing profile that is assigned to the user.
sourcepub fn hierarchy_path(&self) -> Option<&HierarchyPathReference>
pub fn hierarchy_path(&self) -> Option<&HierarchyPathReference>
Contains information about the levels of a hierarchy group assigned to a user.
sourcepub fn status(&self) -> Option<&AgentStatusReference>
pub fn status(&self) -> Option<&AgentStatusReference>
The status of the agent that they manually set in their Contact Control Panel (CCP), or that the supervisor manually changes in the real-time metrics report.
sourcepub fn available_slots_by_channel(&self) -> Option<&HashMap<Channel, i32>>
pub fn available_slots_by_channel(&self) -> Option<&HashMap<Channel, i32>>
A map of available slots by channel. The key is a channel name. The value is an integer: the available number of slots.
sourcepub fn max_slots_by_channel(&self) -> Option<&HashMap<Channel, i32>>
pub fn max_slots_by_channel(&self) -> Option<&HashMap<Channel, i32>>
A map of maximum slots by channel. The key is a channel name. The value is an integer: the maximum number of slots. This is calculated from MediaConcurrency of the RoutingProfile
assigned to the agent.
sourcepub fn active_slots_by_channel(&self) -> Option<&HashMap<Channel, i32>>
pub fn active_slots_by_channel(&self) -> Option<&HashMap<Channel, i32>>
A map of active slots by channel. The key is a channel name. The value is an integer: the number of active slots.
sourcepub fn contacts(&self) -> &[AgentContactReference]
pub fn contacts(&self) -> &[AgentContactReference]
A list of contact reference information.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .contacts.is_none()
.
sourcepub fn next_status(&self) -> Option<&str>
pub fn next_status(&self) -> Option<&str>
The Next status of the agent.
Trait Implementations§
source§impl PartialEq for UserData
impl PartialEq for UserData
impl StructuralPartialEq for UserData
Auto Trait Implementations§
impl Freeze for UserData
impl RefUnwindSafe for UserData
impl Send for UserData
impl Sync for UserData
impl Unpin for UserData
impl UnwindSafe for UserData
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more