pub struct Service<T>{ /* private fields */ }
Implementations§
source§impl<T> Service<T>
impl<T> Service<T>
sourcepub async fn disable_account_invites(
&self,
input: Input
) -> Result<(), Error<Error>>
pub async fn disable_account_invites( &self, input: Input ) -> Result<(), Error<Error>>
Disable an account from receiving new invite codes, but does not invalidate existing codes
sourcepub async fn disable_invite_codes(
&self,
input: Input
) -> Result<(), Error<Error>>
pub async fn disable_invite_codes( &self, input: Input ) -> Result<(), Error<Error>>
Disable some set of codes and/or all codes associated with a set of users
sourcepub async fn enable_account_invites(
&self,
input: Input
) -> Result<(), Error<Error>>
pub async fn enable_account_invites( &self, input: Input ) -> Result<(), Error<Error>>
Re-enable an accounts ability to receive invite codes
sourcepub async fn get_account_info(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_account_info( &self, params: Parameters ) -> Result<Output, Error<Error>>
View details about an account.
sourcepub async fn get_invite_codes(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_invite_codes( &self, params: Parameters ) -> Result<Output, Error<Error>>
Admin view of invite codes
sourcepub async fn get_moderation_action(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_moderation_action( &self, params: Parameters ) -> Result<Output, Error<Error>>
View details about a moderation action.
sourcepub async fn get_moderation_actions(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_moderation_actions( &self, params: Parameters ) -> Result<Output, Error<Error>>
List moderation actions related to a subject.
sourcepub async fn get_moderation_report(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_moderation_report( &self, params: Parameters ) -> Result<Output, Error<Error>>
View details about a moderation report.
sourcepub async fn get_moderation_reports(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_moderation_reports( &self, params: Parameters ) -> Result<Output, Error<Error>>
List moderation reports related to a subject.
sourcepub async fn get_record(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_record( &self, params: Parameters ) -> Result<Output, Error<Error>>
View details about a record.
sourcepub async fn get_repo(&self, params: Parameters) -> Result<Output, Error<Error>>
pub async fn get_repo(&self, params: Parameters) -> Result<Output, Error<Error>>
View details about a repository.
sourcepub async fn get_subject_status(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn get_subject_status( &self, params: Parameters ) -> Result<Output, Error<Error>>
Fetch the service-specific the admin status of a subject (account, record, or blob)
sourcepub async fn resolve_moderation_reports(
&self,
input: Input
) -> Result<Output, Error<Error>>
pub async fn resolve_moderation_reports( &self, input: Input ) -> Result<Output, Error<Error>>
Resolve moderation reports by an action.
sourcepub async fn reverse_moderation_action(
&self,
input: Input
) -> Result<Output, Error<Error>>
pub async fn reverse_moderation_action( &self, input: Input ) -> Result<Output, Error<Error>>
Reverse a moderation action.
sourcepub async fn search_repos(
&self,
params: Parameters
) -> Result<Output, Error<Error>>
pub async fn search_repos( &self, params: Parameters ) -> Result<Output, Error<Error>>
Find repositories based on a search term.
sourcepub async fn send_email(&self, input: Input) -> Result<Output, Error<Error>>
pub async fn send_email(&self, input: Input) -> Result<Output, Error<Error>>
Send email to a user’s primary email address
sourcepub async fn take_moderation_action(
&self,
input: Input
) -> Result<Output, Error<Error>>
pub async fn take_moderation_action( &self, input: Input ) -> Result<Output, Error<Error>>
Take a moderation action on a repo.
sourcepub async fn update_account_email(
&self,
input: Input
) -> Result<(), Error<Error>>
pub async fn update_account_email( &self, input: Input ) -> Result<(), Error<Error>>
Administrative action to update an account’s email