pub struct QueueSelectionsResource { /* private fields */ }Expand description
Queue selections (routing rules) and their agent/group/tag membership.
Implementations§
Source§impl QueueSelectionsResource
impl QueueSelectionsResource
Sourcepub async fn list_all(
&self,
queue_id: &str,
) -> Result<Vec<QueueSelection>, ManagerError>
pub async fn list_all( &self, queue_id: &str, ) -> Result<Vec<QueueSelection>, ManagerError>
List all selections for a queue (auto-paginated).
Sourcepub async fn create(
&self,
queue_id: &str,
body: RestCreateQueueSelection,
) -> Result<QueueSelectionItemResponse, ManagerError>
pub async fn create( &self, queue_id: &str, body: RestCreateQueueSelection, ) -> Result<QueueSelectionItemResponse, ManagerError>
Create a selection on a queue.
Sourcepub async fn get(
&self,
queue_id: &str,
id: &str,
) -> Result<QueueSelectionItemResponse, ManagerError>
pub async fn get( &self, queue_id: &str, id: &str, ) -> Result<QueueSelectionItemResponse, ManagerError>
Get a selection.
Sourcepub async fn update(
&self,
queue_id: &str,
id: &str,
body: RestUpdateQueueSelection,
) -> Result<QueueSelectionItemResponse, ManagerError>
pub async fn update( &self, queue_id: &str, id: &str, body: RestUpdateQueueSelection, ) -> Result<QueueSelectionItemResponse, ManagerError>
Update a selection.
Sourcepub async fn delete(&self, queue_id: &str, id: &str) -> Result<(), ManagerError>
pub async fn delete(&self, queue_id: &str, id: &str) -> Result<(), ManagerError>
Delete a selection.
Sourcepub async fn select_agents(
&self,
queue_id: &str,
) -> Result<QueueSelectionResponse, ManagerError>
pub async fn select_agents( &self, queue_id: &str, ) -> Result<QueueSelectionResponse, ManagerError>
Resolve the agents currently selected for a queue.
Sourcepub async fn add_agent(
&self,
queue_id: &str,
selection_id: &str,
agent_id: &str,
) -> Result<QueueSelectionModificationResponse, ManagerError>
pub async fn add_agent( &self, queue_id: &str, selection_id: &str, agent_id: &str, ) -> Result<QueueSelectionModificationResponse, ManagerError>
Add an agent to a selection.
Sourcepub async fn remove_agent(
&self,
queue_id: &str,
selection_id: &str,
id: &str,
) -> Result<QueueSelectionModificationResponse, ManagerError>
pub async fn remove_agent( &self, queue_id: &str, selection_id: &str, id: &str, ) -> Result<QueueSelectionModificationResponse, ManagerError>
Remove an agent from a selection.
Sourcepub async fn add_group(
&self,
queue_id: &str,
selection_id: &str,
group_id: &str,
) -> Result<QueueSelectionModificationResponse, ManagerError>
pub async fn add_group( &self, queue_id: &str, selection_id: &str, group_id: &str, ) -> Result<QueueSelectionModificationResponse, ManagerError>
Add an agent group to a selection.
Sourcepub async fn remove_group(
&self,
queue_id: &str,
selection_id: &str,
id: &str,
) -> Result<QueueSelectionModificationResponse, ManagerError>
pub async fn remove_group( &self, queue_id: &str, selection_id: &str, id: &str, ) -> Result<QueueSelectionModificationResponse, ManagerError>
Remove an agent group from a selection.
Sourcepub async fn add_tag(
&self,
queue_id: &str,
selection_id: &str,
tag_id: &str,
) -> Result<QueueSelectionModificationResponse, ManagerError>
pub async fn add_tag( &self, queue_id: &str, selection_id: &str, tag_id: &str, ) -> Result<QueueSelectionModificationResponse, ManagerError>
Add a tag to a selection.
Sourcepub async fn remove_tag(
&self,
queue_id: &str,
selection_id: &str,
id: &str,
) -> Result<QueueSelectionModificationResponse, ManagerError>
pub async fn remove_tag( &self, queue_id: &str, selection_id: &str, id: &str, ) -> Result<QueueSelectionModificationResponse, ManagerError>
Remove a tag from a selection.
Sourcepub async fn set_priority(
&self,
queue_id: &str,
items: Vec<QueueSelectionPriorityItem>,
) -> Result<QueueSelectionListResponse, ManagerError>
pub async fn set_priority( &self, queue_id: &str, items: Vec<QueueSelectionPriorityItem>, ) -> Result<QueueSelectionListResponse, ManagerError>
Set the priority order of a queue’s selections.
Auto Trait Implementations§
impl !RefUnwindSafe for QueueSelectionsResource
impl !UnwindSafe for QueueSelectionsResource
impl Freeze for QueueSelectionsResource
impl Send for QueueSelectionsResource
impl Sync for QueueSelectionsResource
impl Unpin for QueueSelectionsResource
impl UnsafeUnpin for QueueSelectionsResource
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