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 cancel_scheduled_actions(
&self,
input: Input,
) -> Result<Output, Error>
pub async fn cancel_scheduled_actions( &self, input: Input, ) -> Result<Output, Error>
Cancel all pending scheduled moderation actions for specified subjects
Sourcepub async fn emit_event(&self, input: Input) -> Result<Output, Error>
pub async fn emit_event(&self, input: Input) -> Result<Output, Error>
Take a moderation action on an actor.
Sourcepub async fn get_account_timeline(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn get_account_timeline( &self, params: Parameters, ) -> Result<Output, Error>
Get timeline of all available events of an account. This includes moderation events, account history and did history.
Sourcepub async fn get_event(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_event(&self, params: Parameters) -> Result<Output, Error>
Get details about a moderation event.
Sourcepub async fn get_record(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_record(&self, params: Parameters) -> Result<Output, Error>
Get details about a record.
Sourcepub async fn get_records(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_records(&self, params: Parameters) -> Result<Output, Error>
Get details about some records.
Sourcepub async fn get_repo(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_repo(&self, params: Parameters) -> Result<Output, Error>
Get details about a repository.
Sourcepub async fn get_reporter_stats(
&self,
params: Parameters,
) -> Result<Output, Error>
pub async fn get_reporter_stats( &self, params: Parameters, ) -> Result<Output, Error>
Get reporter stats for a list of users.
Sourcepub async fn get_repos(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_repos(&self, params: Parameters) -> Result<Output, Error>
Get details about some repositories.
Sourcepub async fn get_subjects(&self, params: Parameters) -> Result<Output, Error>
pub async fn get_subjects(&self, params: Parameters) -> Result<Output, Error>
Get details about subjects.
Sourcepub async fn list_scheduled_actions(
&self,
input: Input,
) -> Result<Output, Error>
pub async fn list_scheduled_actions( &self, input: Input, ) -> Result<Output, Error>
List scheduled moderation actions with optional filtering
Sourcepub async fn query_events(&self, params: Parameters) -> Result<Output, Error>
pub async fn query_events(&self, params: Parameters) -> Result<Output, Error>
List moderation events related to a subject.
Sourcepub async fn query_statuses(&self, params: Parameters) -> Result<Output, Error>
pub async fn query_statuses(&self, params: Parameters) -> Result<Output, Error>
View moderation statuses of subjects (record or repo).
Sourcepub async fn schedule_action(&self, input: Input) -> Result<Output, Error>
pub async fn schedule_action(&self, input: Input) -> Result<Output, Error>
Schedule a moderation action to be executed at a future time
Sourcepub async fn search_repos(&self, params: Parameters) -> Result<Output, Error>
pub async fn search_repos(&self, params: Parameters) -> Result<Output, Error>
Find repositories based on a search term.
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