pub struct Service<T>{ /* private fields */ }Available on crate feature
namespace-toolsozone only.Implementations§
Source§impl<T> Service<T>
impl<T> Service<T>
Sourcepub async fn assign_moderator(&self, input: Input) -> Result<Output, Error>
pub async fn assign_moderator(&self, input: Input) -> Result<Output, Error>
Assign a user to a queue.
Sourcepub async fn create_queue(&self, input: Input) -> Result<Output, Error>
pub async fn create_queue(&self, input: Input) -> Result<Output, Error>
Create a new moderation queue. A queue can have optional matching criteria that ozone’s queue router will use to match reports. A queue with no criteria must have reports assigned to it manually via (1) modTool.meta.queueId in tools.ozone.moderation.emitEvent or (2) tools.ozone.report.reassignQueue.
Sourcepub async fn delete_queue(&self, input: Input) -> Result<Output, Error>
pub async fn delete_queue(&self, input: Input) -> Result<Output, Error>
Delete a moderation queue. Optionally migrate reports to another queue.
Sourcepub async fn get_assignments(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_assignments(&self, params: Parameters) -> Result<Output, Error>
Get moderator assignments, optionally filtered by active status, queue, or moderator.
Sourcepub async fn list_queues(&self, params: Parameters) -> Result<Output, Error>
pub async fn list_queues(&self, params: Parameters) -> Result<Output, Error>
List all configured moderation queues with statistics.
Sourcepub async fn route_reports(&self, input: Input) -> Result<Output, Error>
pub async fn route_reports(&self, input: Input) -> Result<Output, Error>
Route reports within an ID range to matching queues based.
Auto Trait Implementations§
impl<T> Freeze for Service<T>
impl<T> RefUnwindSafe for Service<T>
impl<T> Send for Service<T>
impl<T> Sync for Service<T>
impl<T> Unpin for Service<T>
impl<T> UnsafeUnpin for Service<T>
impl<T> UnwindSafe for Service<T>
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