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 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_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 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 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>where
T: RefUnwindSafe,
impl<T> Send for Service<T>
impl<T> Sync for Service<T>
impl<T> Unpin for Service<T>where
T: Unpin,
impl<T> UnwindSafe for Service<T>where
T: RefUnwindSafe + UnwindSafe,
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