Struct aws_sdk_connect::types::AgentContactReference
source · #[non_exhaustive]pub struct AgentContactReference {
pub contact_id: Option<String>,
pub channel: Option<Channel>,
pub initiation_method: Option<ContactInitiationMethod>,
pub agent_contact_state: Option<ContactState>,
pub state_start_timestamp: Option<DateTime>,
pub connected_to_agent_timestamp: Option<DateTime>,
pub queue: Option<QueueReference>,
}
Expand description
Information about the contact associated to the 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.contact_id: Option<String>
The identifier of the contact in this instance of Amazon Connect.
channel: Option<Channel>
The channel of the contact.
initiation_method: Option<ContactInitiationMethod>
How the contact was initiated.
agent_contact_state: Option<ContactState>
The state of the contact.
When AgentContactState
is set to CONNECTED_ONHOLD
, StateStartTimestamp
is not changed. Instead, StateStartTimestamp
reflects the time the contact was CONNECTED
to the agent.
state_start_timestamp: Option<DateTime>
The epoch timestamp when the contact state started.
connected_to_agent_timestamp: Option<DateTime>
The time at which the contact was connected to an agent.
queue: Option<QueueReference>
Contains information about a queue resource for which metrics are returned.
Implementations§
source§impl AgentContactReference
impl AgentContactReference
sourcepub fn contact_id(&self) -> Option<&str>
pub fn contact_id(&self) -> Option<&str>
The identifier of the contact in this instance of Amazon Connect.
sourcepub fn initiation_method(&self) -> Option<&ContactInitiationMethod>
pub fn initiation_method(&self) -> Option<&ContactInitiationMethod>
How the contact was initiated.
sourcepub fn agent_contact_state(&self) -> Option<&ContactState>
pub fn agent_contact_state(&self) -> Option<&ContactState>
The state of the contact.
When AgentContactState
is set to CONNECTED_ONHOLD
, StateStartTimestamp
is not changed. Instead, StateStartTimestamp
reflects the time the contact was CONNECTED
to the agent.
sourcepub fn state_start_timestamp(&self) -> Option<&DateTime>
pub fn state_start_timestamp(&self) -> Option<&DateTime>
The epoch timestamp when the contact state started.
sourcepub fn connected_to_agent_timestamp(&self) -> Option<&DateTime>
pub fn connected_to_agent_timestamp(&self) -> Option<&DateTime>
The time at which the contact was connected to an agent.
sourcepub fn queue(&self) -> Option<&QueueReference>
pub fn queue(&self) -> Option<&QueueReference>
Contains information about a queue resource for which metrics are returned.
source§impl AgentContactReference
impl AgentContactReference
sourcepub fn builder() -> AgentContactReferenceBuilder
pub fn builder() -> AgentContactReferenceBuilder
Creates a new builder-style object to manufacture AgentContactReference
.
Trait Implementations§
source§impl Clone for AgentContactReference
impl Clone for AgentContactReference
source§fn clone(&self) -> AgentContactReference
fn clone(&self) -> AgentContactReference
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AgentContactReference
impl Debug for AgentContactReference
source§impl PartialEq for AgentContactReference
impl PartialEq for AgentContactReference
source§fn eq(&self, other: &AgentContactReference) -> bool
fn eq(&self, other: &AgentContactReference) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AgentContactReference
Auto Trait Implementations§
impl Freeze for AgentContactReference
impl RefUnwindSafe for AgentContactReference
impl Send for AgentContactReference
impl Sync for AgentContactReference
impl Unpin for AgentContactReference
impl UnwindSafe for AgentContactReference
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