pub struct BergClient(/* private fields */);Implementations§
Methods from Deref<Target = Forgejo>§
Sourcepub fn activitypub_instance_actor(
&self,
) -> Request<'_, ActivitypubInstanceActor, ActivityPub>
pub fn activitypub_instance_actor( &self, ) -> Request<'_, ActivitypubInstanceActor, ActivityPub>
Returns the instance’s Actor
Sourcepub fn activitypub_instance_actor_inbox(
&self,
) -> Request<'_, ActivitypubInstanceActorInbox, ()>
pub fn activitypub_instance_actor_inbox( &self, ) -> Request<'_, ActivitypubInstanceActorInbox, ()>
Send to the inbox
Sourcepub fn activitypub_instance_actor_outbox(
&self,
) -> Request<'_, ActivitypubInstanceActorOutbox, Bytes>
pub fn activitypub_instance_actor_outbox( &self, ) -> Request<'_, ActivitypubInstanceActorOutbox, Bytes>
Display the outbox (always empty)
Sourcepub fn activitypub_repository(
&self,
repository_id: i64,
) -> Request<'_, ActivitypubRepository, ActivityPub>
pub fn activitypub_repository( &self, repository_id: i64, ) -> Request<'_, ActivitypubRepository, ActivityPub>
Returns the Repository actor for a repo
repository-id: repository ID of the repo
Sourcepub fn activitypub_repository_inbox(
&self,
repository_id: i64,
body: ForgeLike,
) -> Request<'_, ActivitypubRepositoryInbox, ()>
pub fn activitypub_repository_inbox( &self, repository_id: i64, body: ForgeLike, ) -> Request<'_, ActivitypubRepositoryInbox, ()>
Send to the inbox
repository-id: repository ID of the repobody: SeeForgeLike
Sourcepub fn activitypub_repository_outbox(
&self,
repository_id: i64,
) -> Request<'_, ActivitypubRepositoryOutbox, Bytes>
pub fn activitypub_repository_outbox( &self, repository_id: i64, ) -> Request<'_, ActivitypubRepositoryOutbox, Bytes>
Display the outbox
repository-id: repository ID of the repo
Sourcepub fn activitypub_person(
&self,
user_id: i64,
) -> Request<'_, ActivitypubPerson, ActivityPub>
pub fn activitypub_person( &self, user_id: i64, ) -> Request<'_, ActivitypubPerson, ActivityPub>
Returns the Person actor for a user
user-id: user ID of the user
Sourcepub fn activitypub_person_activity_note(
&self,
user_id: u32,
activity_id: u32,
) -> Request<'_, ActivitypubPersonActivityNote, ActivityPub>
pub fn activitypub_person_activity_note( &self, user_id: u32, activity_id: u32, ) -> Request<'_, ActivitypubPersonActivityNote, ActivityPub>
Get a specific activity object of the user
user-id: user ID of the useractivity-id: activity ID of the sought activity
Sourcepub fn activitypub_person_activity(
&self,
user_id: u32,
activity_id: u32,
) -> Request<'_, ActivitypubPersonActivity, ActivityPub>
pub fn activitypub_person_activity( &self, user_id: u32, activity_id: u32, ) -> Request<'_, ActivitypubPersonActivity, ActivityPub>
Get a specific activity of the user
user-id: user ID of the useractivity-id: activity ID of the sought activity
Sourcepub fn activitypub_person_inbox(
&self,
user_id: i64,
) -> Request<'_, ActivitypubPersonInbox, ()>
pub fn activitypub_person_inbox( &self, user_id: i64, ) -> Request<'_, ActivitypubPersonInbox, ()>
Send to the inbox
user-id: user ID of the user
Sourcepub fn activitypub_person_feed(
&self,
user_id: u32,
) -> Request<'_, ActivitypubPersonFeed, ForgeOutbox>
pub fn activitypub_person_feed( &self, user_id: u32, ) -> Request<'_, ActivitypubPersonFeed, ForgeOutbox>
List the user’s recorded activity
user-id: user ID of the user
Sourcepub fn admin_cron_list(
&self,
) -> Request<'_, AdminCronList, (CronListHeaders, Vec<Cron>)>
pub fn admin_cron_list( &self, ) -> Request<'_, AdminCronList, (CronListHeaders, Vec<Cron>)>
List cron tasks
Sourcepub fn admin_cron_run(&self, task: &str) -> Request<'_, AdminCronRun<'_>, ()>
pub fn admin_cron_run(&self, task: &str) -> Request<'_, AdminCronRun<'_>, ()>
Run cron task
task: task to run
Sourcepub fn admin_get_all_emails(&self) -> Request<'_, AdminGetAllEmails, Vec<Email>>
pub fn admin_get_all_emails(&self) -> Request<'_, AdminGetAllEmails, Vec<Email>>
List all users’ email addresses
Sourcepub fn admin_search_emails(
&self,
query: AdminSearchEmailsQuery,
) -> Request<'_, AdminSearchEmails, Vec<Email>>
pub fn admin_search_emails( &self, query: AdminSearchEmailsQuery, ) -> Request<'_, AdminSearchEmails, Vec<Email>>
Search users’ email addresses
Sourcepub fn admin_list_hooks(&self) -> Request<'_, AdminListHooks, Vec<Hook>>
pub fn admin_list_hooks(&self) -> Request<'_, AdminListHooks, Vec<Hook>>
List global (system) webhooks
Sourcepub fn admin_create_hook(
&self,
body: CreateHookOption,
) -> Request<'_, AdminCreateHook, Hook>
pub fn admin_create_hook( &self, body: CreateHookOption, ) -> Request<'_, AdminCreateHook, Hook>
Create a hook
body: SeeCreateHookOption
Sourcepub fn admin_get_hook(&self, id: i64) -> Request<'_, AdminGetHook, Hook>
pub fn admin_get_hook(&self, id: i64) -> Request<'_, AdminGetHook, Hook>
Get a hook
id: id of the hook to get
Sourcepub fn admin_delete_hook(&self, id: i64) -> Request<'_, AdminDeleteHook, ()>
pub fn admin_delete_hook(&self, id: i64) -> Request<'_, AdminDeleteHook, ()>
Delete a hook
id: id of the hook to delete
Sourcepub fn admin_edit_hook(
&self,
id: i64,
body: EditHookOption,
) -> Request<'_, AdminEditHook, Hook>
pub fn admin_edit_hook( &self, id: i64, body: EditHookOption, ) -> Request<'_, AdminEditHook, Hook>
Update a hook
id: id of the hook to updatebody: SeeEditHookOption
Sourcepub fn admin_get_all_orgs(
&self,
) -> Request<'_, AdminGetAllOrgs, (OrganizationListHeaders, Vec<Organization>)>
pub fn admin_get_all_orgs( &self, ) -> Request<'_, AdminGetAllOrgs, (OrganizationListHeaders, Vec<Organization>)>
List all organizations
Sourcepub fn admin_list_quota_groups(
&self,
) -> Request<'_, AdminListQuotaGroups, Vec<QuotaGroup>>
pub fn admin_list_quota_groups( &self, ) -> Request<'_, AdminListQuotaGroups, Vec<QuotaGroup>>
List the available quota groups
Sourcepub fn admin_create_quota_group(
&self,
group: CreateQuotaGroupOptions,
) -> Request<'_, AdminCreateQuotaGroup, QuotaGroup>
pub fn admin_create_quota_group( &self, group: CreateQuotaGroupOptions, ) -> Request<'_, AdminCreateQuotaGroup, QuotaGroup>
Create a new quota group
group: Definition of the quota group SeeCreateQuotaGroupOptions
Sourcepub fn admin_get_quota_group(
&self,
quotagroup: &str,
) -> Request<'_, AdminGetQuotaGroup<'_>, QuotaGroup>
pub fn admin_get_quota_group( &self, quotagroup: &str, ) -> Request<'_, AdminGetQuotaGroup<'_>, QuotaGroup>
Get information about the quota group
quotagroup: quota group to query
Sourcepub fn admin_delete_quota_group(
&self,
quotagroup: &str,
) -> Request<'_, AdminDeleteQuotaGroup<'_>, ()>
pub fn admin_delete_quota_group( &self, quotagroup: &str, ) -> Request<'_, AdminDeleteQuotaGroup<'_>, ()>
Delete a quota group
quotagroup: quota group to delete
Sourcepub fn admin_add_rule_to_quota_group(
&self,
quotagroup: &str,
quotarule: &str,
) -> Request<'_, AdminAddRuleToQuotaGroup<'_>, ()>
pub fn admin_add_rule_to_quota_group( &self, quotagroup: &str, quotarule: &str, ) -> Request<'_, AdminAddRuleToQuotaGroup<'_>, ()>
Adds a rule to a quota group
quotagroup: quota group to add a rule toquotarule: the name of the quota rule to add to the group
Sourcepub fn admin_remove_rule_from_quota_group(
&self,
quotagroup: &str,
quotarule: &str,
) -> Request<'_, AdminRemoveRuleFromQuotaGroup<'_>, ()>
pub fn admin_remove_rule_from_quota_group( &self, quotagroup: &str, quotarule: &str, ) -> Request<'_, AdminRemoveRuleFromQuotaGroup<'_>, ()>
Removes a rule from a quota group
quotagroup: quota group to remove a rule fromquotarule: the name of the quota rule to remove from the group
Sourcepub fn admin_list_users_in_quota_group(
&self,
quotagroup: &str,
) -> Request<'_, AdminListUsersInQuotaGroup<'_>, (UserListHeaders, Vec<User>)>
pub fn admin_list_users_in_quota_group( &self, quotagroup: &str, ) -> Request<'_, AdminListUsersInQuotaGroup<'_>, (UserListHeaders, Vec<User>)>
List users in a quota group
quotagroup: quota group to list members of
Sourcepub fn admin_add_user_to_quota_group(
&self,
quotagroup: &str,
username: &str,
) -> Request<'_, AdminAddUserToQuotaGroup<'_>, ()>
pub fn admin_add_user_to_quota_group( &self, quotagroup: &str, username: &str, ) -> Request<'_, AdminAddUserToQuotaGroup<'_>, ()>
Add a user to a quota group
quotagroup: quota group to add the user tousername: username of the user to add to the quota group
Sourcepub fn admin_remove_user_from_quota_group(
&self,
quotagroup: &str,
username: &str,
) -> Request<'_, AdminRemoveUserFromQuotaGroup<'_>, ()>
pub fn admin_remove_user_from_quota_group( &self, quotagroup: &str, username: &str, ) -> Request<'_, AdminRemoveUserFromQuotaGroup<'_>, ()>
Remove a user from a quota group
quotagroup: quota group to remove a user fromusername: username of the user to remove from the quota group
Sourcepub fn admin_list_quota_rules(
&self,
) -> Request<'_, AdminListQuotaRules, Vec<QuotaRuleInfo>>
pub fn admin_list_quota_rules( &self, ) -> Request<'_, AdminListQuotaRules, Vec<QuotaRuleInfo>>
List the available quota rules
Sourcepub fn admin_create_quota_rule(
&self,
rule: CreateQuotaRuleOptions,
) -> Request<'_, AdminCreateQuotaRule, QuotaRuleInfo>
pub fn admin_create_quota_rule( &self, rule: CreateQuotaRuleOptions, ) -> Request<'_, AdminCreateQuotaRule, QuotaRuleInfo>
Create a new quota rule
rule: Definition of the quota rule SeeCreateQuotaRuleOptions
Sourcepub fn admin_get_quota_rule(
&self,
quotarule: &str,
) -> Request<'_, AdminGetQuotaRule<'_>, QuotaRuleInfo>
pub fn admin_get_quota_rule( &self, quotarule: &str, ) -> Request<'_, AdminGetQuotaRule<'_>, QuotaRuleInfo>
Get information about a quota rule
quotarule: quota rule to query
Sourcepub fn admin_delete_quota_rule(
&self,
quotarule: &str,
) -> Request<'_, AdminDeleteQuotaRule<'_>, ()>
pub fn admin_delete_quota_rule( &self, quotarule: &str, ) -> Request<'_, AdminDeleteQuotaRule<'_>, ()>
Deletes a quota rule
quotarule: quota rule to delete
Sourcepub fn admin_edit_quota_rule(
&self,
quotarule: &str,
rule: EditQuotaRuleOptions,
) -> Request<'_, AdminEditQuotaRule<'_>, QuotaRuleInfo>
pub fn admin_edit_quota_rule( &self, quotarule: &str, rule: EditQuotaRuleOptions, ) -> Request<'_, AdminEditQuotaRule<'_>, QuotaRuleInfo>
Change an existing quota rule
quotarule: Quota rule to changerule: SeeEditQuotaRuleOptions
Sourcepub fn admin_search_run_jobs(
&self,
query: AdminSearchRunJobsQuery,
) -> Request<'_, AdminSearchRunJobs, Vec<ActionRunJob>>
pub fn admin_search_run_jobs( &self, query: AdminSearchRunJobsQuery, ) -> Request<'_, AdminSearchRunJobs, Vec<ActionRunJob>>
Search action jobs according filter conditions
Sourcepub fn admin_get_runner_registration_token(
&self,
) -> Request<'_, AdminGetRunnerRegistrationToken, RegistrationToken>
pub fn admin_get_runner_registration_token( &self, ) -> Request<'_, AdminGetRunnerRegistrationToken, RegistrationToken>
Get an global actions runner registration token
Sourcepub fn admin_unadopted_list(
&self,
query: AdminUnadoptedListQuery,
) -> Request<'_, AdminUnadoptedList, Vec<String>>
pub fn admin_unadopted_list( &self, query: AdminUnadoptedListQuery, ) -> Request<'_, AdminUnadoptedList, Vec<String>>
List unadopted repositories
Sourcepub fn admin_adopt_repository(
&self,
owner: &str,
repo: &str,
) -> Request<'_, AdminAdoptRepository<'_>, ()>
pub fn admin_adopt_repository( &self, owner: &str, repo: &str, ) -> Request<'_, AdminAdoptRepository<'_>, ()>
Adopt unadopted files as a repository
owner: owner of the reporepo: name of the repo
Sourcepub fn admin_delete_unadopted_repository(
&self,
owner: &str,
repo: &str,
) -> Request<'_, AdminDeleteUnadoptedRepository<'_>, ()>
pub fn admin_delete_unadopted_repository( &self, owner: &str, repo: &str, ) -> Request<'_, AdminDeleteUnadoptedRepository<'_>, ()>
Delete unadopted files
owner: owner of the reporepo: name of the repo
Sourcepub fn admin_search_users(
&self,
query: AdminSearchUsersQuery,
) -> Request<'_, AdminSearchUsers, (UserListHeaders, Vec<User>)>
pub fn admin_search_users( &self, query: AdminSearchUsersQuery, ) -> Request<'_, AdminSearchUsers, (UserListHeaders, Vec<User>)>
Search users according filter conditions
Sourcepub fn admin_create_user(
&self,
body: CreateUserOption,
) -> Request<'_, AdminCreateUser, User>
pub fn admin_create_user( &self, body: CreateUserOption, ) -> Request<'_, AdminCreateUser, User>
Create a user account
body: SeeCreateUserOption
Sourcepub fn admin_delete_user(
&self,
username: &str,
query: AdminDeleteUserQuery,
) -> Request<'_, AdminDeleteUser<'_>, ()>
pub fn admin_delete_user( &self, username: &str, query: AdminDeleteUserQuery, ) -> Request<'_, AdminDeleteUser<'_>, ()>
Delete user account
username: username of user to delete
Sourcepub fn admin_edit_user(
&self,
username: &str,
body: EditUserOption,
) -> Request<'_, AdminEditUser<'_>, User>
pub fn admin_edit_user( &self, username: &str, body: EditUserOption, ) -> Request<'_, AdminEditUser<'_>, User>
Edit an existing user
username: username of user to editbody: SeeEditUserOption
Sourcepub fn admin_list_user_emails(
&self,
username: &str,
) -> Request<'_, AdminListUserEmails<'_>, Vec<Email>>
pub fn admin_list_user_emails( &self, username: &str, ) -> Request<'_, AdminListUserEmails<'_>, Vec<Email>>
List all email addresses for a user
username: username of user to get email addresses of
Sourcepub fn admin_delete_user_emails(
&self,
username: &str,
body: DeleteEmailOption,
) -> Request<'_, AdminDeleteUserEmails<'_>, ()>
pub fn admin_delete_user_emails( &self, username: &str, body: DeleteEmailOption, ) -> Request<'_, AdminDeleteUserEmails<'_>, ()>
Delete email addresses from a user’s account
username: username of user to delete email addresses frombody: SeeDeleteEmailOption
Sourcepub fn admin_create_public_key(
&self,
username: &str,
key: CreateKeyOption,
) -> Request<'_, AdminCreatePublicKey<'_>, PublicKey>
pub fn admin_create_public_key( &self, username: &str, key: CreateKeyOption, ) -> Request<'_, AdminCreatePublicKey<'_>, PublicKey>
Add an SSH public key to user’s account
username: username of the userkey: SeeCreateKeyOption
Sourcepub fn admin_delete_user_public_key(
&self,
username: &str,
id: i64,
) -> Request<'_, AdminDeleteUserPublicKey<'_>, ()>
pub fn admin_delete_user_public_key( &self, username: &str, id: i64, ) -> Request<'_, AdminDeleteUserPublicKey<'_>, ()>
Remove a public key from user’s account
username: username of userid: id of the key to delete
Sourcepub fn admin_create_org(
&self,
username: &str,
organization: CreateOrgOption,
) -> Request<'_, AdminCreateOrg<'_>, Organization>
pub fn admin_create_org( &self, username: &str, organization: CreateOrgOption, ) -> Request<'_, AdminCreateOrg<'_>, Organization>
Create an organization
username: username of the user that will own the created organizationorganization: SeeCreateOrgOption
Sourcepub fn admin_get_user_quota(
&self,
username: &str,
) -> Request<'_, AdminGetUserQuota<'_>, QuotaInfo>
pub fn admin_get_user_quota( &self, username: &str, ) -> Request<'_, AdminGetUserQuota<'_>, QuotaInfo>
Get the user’s quota info
username: username of user to query
Sourcepub fn admin_set_user_quota_groups(
&self,
username: &str,
groups: SetUserQuotaGroupsOptions,
) -> Request<'_, AdminSetUserQuotaGroups<'_>, ()>
pub fn admin_set_user_quota_groups( &self, username: &str, groups: SetUserQuotaGroupsOptions, ) -> Request<'_, AdminSetUserQuotaGroups<'_>, ()>
Set the user’s quota groups to a given list.
username: username of the user to modify the quota groups fromgroups: list of groups that the user should be a member of SeeSetUserQuotaGroupsOptions
Sourcepub fn admin_rename_user(
&self,
username: &str,
body: RenameUserOption,
) -> Request<'_, AdminRenameUser<'_>, ()>
pub fn admin_rename_user( &self, username: &str, body: RenameUserOption, ) -> Request<'_, AdminRenameUser<'_>, ()>
Rename a user
username: existing username of userbody: SeeRenameUserOption
Sourcepub fn admin_create_repo(
&self,
username: &str,
repository: CreateRepoOption,
) -> Request<'_, AdminCreateRepo<'_>, Repository>
pub fn admin_create_repo( &self, username: &str, repository: CreateRepoOption, ) -> Request<'_, AdminCreateRepo<'_>, Repository>
Create a repository on behalf of a user
username: username of the user. This user will own the created repositoryrepository: SeeCreateRepoOption
Sourcepub fn list_gitignores_templates(
&self,
) -> Request<'_, ListGitignoresTemplates, Vec<String>>
pub fn list_gitignores_templates( &self, ) -> Request<'_, ListGitignoresTemplates, Vec<String>>
Returns a list of all gitignore templates
Sourcepub fn get_gitignore_template_info(
&self,
name: &str,
) -> Request<'_, GetGitignoreTemplateInfo<'_>, GitignoreTemplateInfo>
pub fn get_gitignore_template_info( &self, name: &str, ) -> Request<'_, GetGitignoreTemplateInfo<'_>, GitignoreTemplateInfo>
Returns information about a gitignore template
name: name of the template
Sourcepub fn list_label_templates(
&self,
) -> Request<'_, ListLabelTemplates, Vec<String>>
pub fn list_label_templates( &self, ) -> Request<'_, ListLabelTemplates, Vec<String>>
Returns a list of all label templates
Sourcepub fn get_label_template_info(
&self,
name: &str,
) -> Request<'_, GetLabelTemplateInfo<'_>, Vec<LabelTemplate>>
pub fn get_label_template_info( &self, name: &str, ) -> Request<'_, GetLabelTemplateInfo<'_>, Vec<LabelTemplate>>
Returns all labels in a template
name: name of the template
Sourcepub fn list_license_templates(
&self,
) -> Request<'_, ListLicenseTemplates, Vec<LicensesTemplateListEntry>>
pub fn list_license_templates( &self, ) -> Request<'_, ListLicenseTemplates, Vec<LicensesTemplateListEntry>>
Returns a list of all license templates
Sourcepub fn get_license_template_info(
&self,
name: &str,
) -> Request<'_, GetLicenseTemplateInfo<'_>, LicenseTemplateInfo>
pub fn get_license_template_info( &self, name: &str, ) -> Request<'_, GetLicenseTemplateInfo<'_>, LicenseTemplateInfo>
Returns information about a license template
name: name of the license
Sourcepub fn render_markdown(
&self,
body: MarkdownOption,
) -> Request<'_, RenderMarkdown, String>
pub fn render_markdown( &self, body: MarkdownOption, ) -> Request<'_, RenderMarkdown, String>
Render a markdown document as HTML
body: SeeMarkdownOption
Sourcepub fn render_markdown_raw(
&self,
body: String,
) -> Request<'_, RenderMarkdownRaw, String>
pub fn render_markdown_raw( &self, body: String, ) -> Request<'_, RenderMarkdownRaw, String>
Render raw markdown as HTML
body: Request body to render SeeString
Sourcepub fn render_markup(
&self,
body: MarkupOption,
) -> Request<'_, RenderMarkup, String>
pub fn render_markup( &self, body: MarkupOption, ) -> Request<'_, RenderMarkup, String>
Render a markup document as HTML
body: SeeMarkupOption
Sourcepub fn get_node_info(&self) -> Request<'_, GetNodeInfo, NodeInfo>
pub fn get_node_info(&self) -> Request<'_, GetNodeInfo, NodeInfo>
Returns the nodeinfo of the Forgejo application
Sourcepub fn notify_get_list(
&self,
query: NotifyGetListQuery,
) -> Request<'_, NotifyGetList, (NotificationThreadListHeaders, Vec<NotificationThread>)>
pub fn notify_get_list( &self, query: NotifyGetListQuery, ) -> Request<'_, NotifyGetList, (NotificationThreadListHeaders, Vec<NotificationThread>)>
List users’s notification threads
Sourcepub fn notify_read_list(
&self,
query: NotifyReadListQuery,
) -> Request<'_, NotifyReadList, Vec<NotificationThread>>
pub fn notify_read_list( &self, query: NotifyReadListQuery, ) -> Request<'_, NotifyReadList, Vec<NotificationThread>>
Mark notification threads as read, pinned or unread
Sourcepub fn notify_new_available(
&self,
) -> Request<'_, NotifyNewAvailable, NotificationCount>
pub fn notify_new_available( &self, ) -> Request<'_, NotifyNewAvailable, NotificationCount>
Check if unread notifications exist
Sourcepub fn notify_get_thread(
&self,
id: i64,
) -> Request<'_, NotifyGetThread, NotificationThread>
pub fn notify_get_thread( &self, id: i64, ) -> Request<'_, NotifyGetThread, NotificationThread>
Get notification thread by ID
id: id of notification thread
Sourcepub fn notify_read_thread(
&self,
id: i64,
query: NotifyReadThreadQuery,
) -> Request<'_, NotifyReadThread, NotificationThread>
pub fn notify_read_thread( &self, id: i64, query: NotifyReadThreadQuery, ) -> Request<'_, NotifyReadThread, NotificationThread>
Mark notification thread as read by ID
id: id of notification thread
Sourcepub fn create_org_repo_deprecated(
&self,
org: &str,
body: CreateRepoOption,
) -> Request<'_, CreateOrgRepoDeprecated<'_>, Repository>
pub fn create_org_repo_deprecated( &self, org: &str, body: CreateRepoOption, ) -> Request<'_, CreateOrgRepoDeprecated<'_>, Repository>
Create a repository in an organization
org: name of organizationbody: SeeCreateRepoOption
Sourcepub fn org_get_all(
&self,
) -> Request<'_, OrgGetAll, (OrganizationListHeaders, Vec<Organization>)>
pub fn org_get_all( &self, ) -> Request<'_, OrgGetAll, (OrganizationListHeaders, Vec<Organization>)>
List all organizations
Sourcepub fn org_create(
&self,
organization: CreateOrgOption,
) -> Request<'_, OrgCreate, Organization>
pub fn org_create( &self, organization: CreateOrgOption, ) -> Request<'_, OrgCreate, Organization>
Create an organization
organization: SeeCreateOrgOption
Sourcepub fn org_get(&self, org: &str) -> Request<'_, OrgGet<'_>, Organization>
pub fn org_get(&self, org: &str) -> Request<'_, OrgGet<'_>, Organization>
Get an organization
org: name of the organization to get
Sourcepub fn org_delete(&self, org: &str) -> Request<'_, OrgDelete<'_>, ()>
pub fn org_delete(&self, org: &str) -> Request<'_, OrgDelete<'_>, ()>
Delete an organization
org: organization that is to be deleted
Sourcepub fn org_edit(
&self,
org: &str,
body: EditOrgOption,
) -> Request<'_, OrgEdit<'_>, Organization>
pub fn org_edit( &self, org: &str, body: EditOrgOption, ) -> Request<'_, OrgEdit<'_>, Organization>
Edit an organization
org: name of the organization to editbody: SeeEditOrgOption
Sourcepub fn org_search_run_jobs(
&self,
org: &str,
query: OrgSearchRunJobsQuery,
) -> Request<'_, OrgSearchRunJobs<'_>, Vec<ActionRunJob>>
pub fn org_search_run_jobs( &self, org: &str, query: OrgSearchRunJobsQuery, ) -> Request<'_, OrgSearchRunJobs<'_>, Vec<ActionRunJob>>
Search for organization’s action jobs according filter conditions
org: name of the organization
Sourcepub fn org_get_runner_registration_token(
&self,
org: &str,
) -> Request<'_, OrgGetRunnerRegistrationToken<'_>, RegistrationToken>
pub fn org_get_runner_registration_token( &self, org: &str, ) -> Request<'_, OrgGetRunnerRegistrationToken<'_>, RegistrationToken>
Get an organization’s actions runner registration token
org: name of the organization
Sourcepub fn org_list_actions_secrets(
&self,
org: &str,
) -> Request<'_, OrgListActionsSecrets<'_>, (SecretListHeaders, Vec<Secret>)>
pub fn org_list_actions_secrets( &self, org: &str, ) -> Request<'_, OrgListActionsSecrets<'_>, (SecretListHeaders, Vec<Secret>)>
List actions secrets of an organization
org: name of the organization
Sourcepub fn update_org_secret(
&self,
org: &str,
secretname: &str,
body: CreateOrUpdateSecretOption,
) -> Request<'_, UpdateOrgSecret<'_>, ()>
pub fn update_org_secret( &self, org: &str, secretname: &str, body: CreateOrUpdateSecretOption, ) -> Request<'_, UpdateOrgSecret<'_>, ()>
Create or Update a secret value in an organization
org: name of organizationsecretname: name of the secretbody: SeeCreateOrUpdateSecretOption
Sourcepub fn delete_org_secret(
&self,
org: &str,
secretname: &str,
) -> Request<'_, DeleteOrgSecret<'_>, ()>
pub fn delete_org_secret( &self, org: &str, secretname: &str, ) -> Request<'_, DeleteOrgSecret<'_>, ()>
Delete a secret in an organization
org: name of organizationsecretname: name of the secret
Sourcepub fn get_org_variables_list(
&self,
org: &str,
) -> Request<'_, GetOrgVariablesList<'_>, (VariableListHeaders, Vec<ActionVariable>)>
pub fn get_org_variables_list( &self, org: &str, ) -> Request<'_, GetOrgVariablesList<'_>, (VariableListHeaders, Vec<ActionVariable>)>
List variables of an organization
org: name of the organization
Sourcepub fn get_org_variable(
&self,
org: &str,
variablename: &str,
) -> Request<'_, GetOrgVariable<'_>, ActionVariable>
pub fn get_org_variable( &self, org: &str, variablename: &str, ) -> Request<'_, GetOrgVariable<'_>, ActionVariable>
Get organization’s variable by name
org: name of the organizationvariablename: name of the variable
Sourcepub fn update_org_variable(
&self,
org: &str,
variablename: &str,
body: UpdateVariableOption,
) -> Request<'_, UpdateOrgVariable<'_>, ()>
pub fn update_org_variable( &self, org: &str, variablename: &str, body: UpdateVariableOption, ) -> Request<'_, UpdateOrgVariable<'_>, ()>
Update variable in organization
org: name of the organizationvariablename: name of the variablebody: SeeUpdateVariableOption
Sourcepub fn create_org_variable(
&self,
org: &str,
variablename: &str,
body: CreateVariableOption,
) -> Request<'_, CreateOrgVariable<'_>, ()>
pub fn create_org_variable( &self, org: &str, variablename: &str, body: CreateVariableOption, ) -> Request<'_, CreateOrgVariable<'_>, ()>
Create a new variable in organization
org: name of the organizationvariablename: name of the variablebody: SeeCreateVariableOption
Sourcepub fn delete_org_variable(
&self,
org: &str,
variablename: &str,
) -> Request<'_, DeleteOrgVariable<'_>, ()>
pub fn delete_org_variable( &self, org: &str, variablename: &str, ) -> Request<'_, DeleteOrgVariable<'_>, ()>
Delete organization’s variable by name
org: name of the organizationvariablename: name of the variable
Sourcepub fn org_list_activity_feeds(
&self,
org: &str,
query: OrgListActivityFeedsQuery,
) -> Request<'_, OrgListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
pub fn org_list_activity_feeds( &self, org: &str, query: OrgListActivityFeedsQuery, ) -> Request<'_, OrgListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
List an organization’s activity feeds
org: name of the org
Sourcepub fn org_update_avatar(
&self,
org: &str,
body: UpdateUserAvatarOption,
) -> Request<'_, OrgUpdateAvatar<'_>, ()>
pub fn org_update_avatar( &self, org: &str, body: UpdateUserAvatarOption, ) -> Request<'_, OrgUpdateAvatar<'_>, ()>
Update an organization’s avatar
org: name of the organizationbody: SeeUpdateUserAvatarOption
Sourcepub fn org_delete_avatar(
&self,
org: &str,
) -> Request<'_, OrgDeleteAvatar<'_>, ()>
pub fn org_delete_avatar( &self, org: &str, ) -> Request<'_, OrgDeleteAvatar<'_>, ()>
Delete an organization’s avatar. It will be replaced by a default one
org: name of the organization
Sourcepub fn org_block_user(
&self,
org: &str,
username: &str,
) -> Request<'_, OrgBlockUser<'_>, ()>
pub fn org_block_user( &self, org: &str, username: &str, ) -> Request<'_, OrgBlockUser<'_>, ()>
Blocks a user from the organization
org: name of the orgusername: username of the user
Sourcepub fn org_list_hooks(
&self,
org: &str,
) -> Request<'_, OrgListHooks<'_>, Vec<Hook>>
pub fn org_list_hooks( &self, org: &str, ) -> Request<'_, OrgListHooks<'_>, Vec<Hook>>
List an organization’s webhooks
org: name of the organization
Sourcepub fn org_create_hook(
&self,
org: &str,
body: CreateHookOption,
) -> Request<'_, OrgCreateHook<'_>, Hook>
pub fn org_create_hook( &self, org: &str, body: CreateHookOption, ) -> Request<'_, OrgCreateHook<'_>, Hook>
Create a hook
org: name of the organizationbody: SeeCreateHookOption
Sourcepub fn org_get_hook(
&self,
org: &str,
id: i64,
) -> Request<'_, OrgGetHook<'_>, Hook>
pub fn org_get_hook( &self, org: &str, id: i64, ) -> Request<'_, OrgGetHook<'_>, Hook>
Get a hook
org: name of the organizationid: id of the hook to get
Sourcepub fn org_delete_hook(
&self,
org: &str,
id: i64,
) -> Request<'_, OrgDeleteHook<'_>, ()>
pub fn org_delete_hook( &self, org: &str, id: i64, ) -> Request<'_, OrgDeleteHook<'_>, ()>
Delete a hook
org: name of the organizationid: id of the hook to delete
Sourcepub fn org_edit_hook(
&self,
org: &str,
id: i64,
body: EditHookOption,
) -> Request<'_, OrgEditHook<'_>, Hook>
pub fn org_edit_hook( &self, org: &str, id: i64, body: EditHookOption, ) -> Request<'_, OrgEditHook<'_>, Hook>
Update a hook
org: name of the organizationid: id of the hook to updatebody: SeeEditHookOption
Sourcepub fn org_list_labels(
&self,
org: &str,
query: OrgListLabelsQuery,
) -> Request<'_, OrgListLabels<'_>, (LabelListHeaders, Vec<Label>)>
pub fn org_list_labels( &self, org: &str, query: OrgListLabelsQuery, ) -> Request<'_, OrgListLabels<'_>, (LabelListHeaders, Vec<Label>)>
List an organization’s labels
org: name of the organization
Sourcepub fn org_create_label(
&self,
org: &str,
body: CreateLabelOption,
) -> Request<'_, OrgCreateLabel<'_>, Label>
pub fn org_create_label( &self, org: &str, body: CreateLabelOption, ) -> Request<'_, OrgCreateLabel<'_>, Label>
Create a label for an organization
org: name of the organizationbody: SeeCreateLabelOption
Sourcepub fn org_get_label(
&self,
org: &str,
id: i64,
) -> Request<'_, OrgGetLabel<'_>, Label>
pub fn org_get_label( &self, org: &str, id: i64, ) -> Request<'_, OrgGetLabel<'_>, Label>
Get a single label
org: name of the organizationid: id of the label to get
Sourcepub fn org_delete_label(
&self,
org: &str,
id: i64,
) -> Request<'_, OrgDeleteLabel<'_>, ()>
pub fn org_delete_label( &self, org: &str, id: i64, ) -> Request<'_, OrgDeleteLabel<'_>, ()>
Delete a label
org: name of the organizationid: id of the label to delete
Sourcepub fn org_edit_label(
&self,
org: &str,
id: i64,
body: EditLabelOption,
) -> Request<'_, OrgEditLabel<'_>, Label>
pub fn org_edit_label( &self, org: &str, id: i64, body: EditLabelOption, ) -> Request<'_, OrgEditLabel<'_>, Label>
Update a label
org: name of the organizationid: id of the label to editbody: SeeEditLabelOption
Sourcepub fn org_list_blocked_users(
&self,
org: &str,
) -> Request<'_, OrgListBlockedUsers<'_>, (BlockedUserListHeaders, Vec<BlockedUser>)>
pub fn org_list_blocked_users( &self, org: &str, ) -> Request<'_, OrgListBlockedUsers<'_>, (BlockedUserListHeaders, Vec<BlockedUser>)>
List the organization’s blocked users
org: name of the org
Sourcepub fn org_list_members(
&self,
org: &str,
) -> Request<'_, OrgListMembers<'_>, (UserListHeaders, Vec<User>)>
pub fn org_list_members( &self, org: &str, ) -> Request<'_, OrgListMembers<'_>, (UserListHeaders, Vec<User>)>
List an organization’s members
org: name of the organization
Sourcepub fn org_is_member(
&self,
org: &str,
username: &str,
) -> Request<'_, OrgIsMember<'_>, ()>
pub fn org_is_member( &self, org: &str, username: &str, ) -> Request<'_, OrgIsMember<'_>, ()>
Check if a user is a member of an organization
org: name of the organizationusername: username of the user
Sourcepub fn org_delete_member(
&self,
org: &str,
username: &str,
) -> Request<'_, OrgDeleteMember<'_>, ()>
pub fn org_delete_member( &self, org: &str, username: &str, ) -> Request<'_, OrgDeleteMember<'_>, ()>
Remove a member from an organization
org: name of the organizationusername: username of the user
Sourcepub fn org_list_public_members(
&self,
org: &str,
) -> Request<'_, OrgListPublicMembers<'_>, (UserListHeaders, Vec<User>)>
pub fn org_list_public_members( &self, org: &str, ) -> Request<'_, OrgListPublicMembers<'_>, (UserListHeaders, Vec<User>)>
List an organization’s public members
org: name of the organization
Sourcepub fn org_is_public_member(
&self,
org: &str,
username: &str,
) -> Request<'_, OrgIsPublicMember<'_>, ()>
pub fn org_is_public_member( &self, org: &str, username: &str, ) -> Request<'_, OrgIsPublicMember<'_>, ()>
Check if a user is a public member of an organization
org: name of the organizationusername: username of the user
Sourcepub fn org_publicize_member(
&self,
org: &str,
username: &str,
) -> Request<'_, OrgPublicizeMember<'_>, ()>
pub fn org_publicize_member( &self, org: &str, username: &str, ) -> Request<'_, OrgPublicizeMember<'_>, ()>
Publicize a user’s membership
org: name of the organizationusername: username of the user
Sourcepub fn org_conceal_member(
&self,
org: &str,
username: &str,
) -> Request<'_, OrgConcealMember<'_>, ()>
pub fn org_conceal_member( &self, org: &str, username: &str, ) -> Request<'_, OrgConcealMember<'_>, ()>
Conceal a user’s membership
org: name of the organizationusername: username of the user
Sourcepub fn org_get_quota(
&self,
org: &str,
) -> Request<'_, OrgGetQuota<'_>, QuotaInfo>
pub fn org_get_quota( &self, org: &str, ) -> Request<'_, OrgGetQuota<'_>, QuotaInfo>
Get quota information for an organization
org: name of the organization
Sourcepub fn org_list_quota_artifacts(
&self,
org: &str,
) -> Request<'_, OrgListQuotaArtifacts<'_>, (QuotaUsedArtifactListHeaders, Vec<QuotaUsedArtifact>)>
pub fn org_list_quota_artifacts( &self, org: &str, ) -> Request<'_, OrgListQuotaArtifacts<'_>, (QuotaUsedArtifactListHeaders, Vec<QuotaUsedArtifact>)>
List the artifacts affecting the organization’s quota
org: name of the organization
Sourcepub fn org_list_quota_attachments(
&self,
org: &str,
) -> Request<'_, OrgListQuotaAttachments<'_>, (QuotaUsedAttachmentListHeaders, Vec<QuotaUsedAttachment>)>
pub fn org_list_quota_attachments( &self, org: &str, ) -> Request<'_, OrgListQuotaAttachments<'_>, (QuotaUsedAttachmentListHeaders, Vec<QuotaUsedAttachment>)>
List the attachments affecting the organization’s quota
org: name of the organization
Sourcepub fn org_check_quota(
&self,
org: &str,
query: OrgCheckQuotaQuery,
) -> Request<'_, OrgCheckQuota<'_>, bool>
pub fn org_check_quota( &self, org: &str, query: OrgCheckQuotaQuery, ) -> Request<'_, OrgCheckQuota<'_>, bool>
Check if the organization is over quota for a given subject
org: name of the organization
Sourcepub fn org_list_quota_packages(
&self,
org: &str,
) -> Request<'_, OrgListQuotaPackages<'_>, (QuotaUsedPackageListHeaders, Vec<QuotaUsedPackage>)>
pub fn org_list_quota_packages( &self, org: &str, ) -> Request<'_, OrgListQuotaPackages<'_>, (QuotaUsedPackageListHeaders, Vec<QuotaUsedPackage>)>
List the packages affecting the organization’s quota
org: name of the organization
Sourcepub fn rename_org(
&self,
org: &str,
body: RenameOrgOption,
) -> Request<'_, RenameOrg<'_>, ()>
pub fn rename_org( &self, org: &str, body: RenameOrgOption, ) -> Request<'_, RenameOrg<'_>, ()>
Rename an organization
org: existing org namebody: SeeRenameOrgOption
Sourcepub fn org_list_repos(
&self,
org: &str,
) -> Request<'_, OrgListRepos<'_>, (RepositoryListHeaders, Vec<Repository>)>
pub fn org_list_repos( &self, org: &str, ) -> Request<'_, OrgListRepos<'_>, (RepositoryListHeaders, Vec<Repository>)>
List an organization’s repos
org: name of the organization
Sourcepub fn create_org_repo(
&self,
org: &str,
body: CreateRepoOption,
) -> Request<'_, CreateOrgRepo<'_>, Repository>
pub fn create_org_repo( &self, org: &str, body: CreateRepoOption, ) -> Request<'_, CreateOrgRepo<'_>, Repository>
Create a repository in an organization
org: name of organizationbody: SeeCreateRepoOption
Sourcepub fn org_list_teams(
&self,
org: &str,
) -> Request<'_, OrgListTeams<'_>, (TeamListHeaders, Vec<Team>)>
pub fn org_list_teams( &self, org: &str, ) -> Request<'_, OrgListTeams<'_>, (TeamListHeaders, Vec<Team>)>
List an organization’s teams
org: name of the organization
Sourcepub fn org_create_team(
&self,
org: &str,
body: CreateTeamOption,
) -> Request<'_, OrgCreateTeam<'_>, Team>
pub fn org_create_team( &self, org: &str, body: CreateTeamOption, ) -> Request<'_, OrgCreateTeam<'_>, Team>
Create a team
org: name of the organizationbody: SeeCreateTeamOption
Sourcepub fn team_search(
&self,
org: &str,
query: TeamSearchQuery,
) -> Request<'_, TeamSearch<'_>, TeamSearchResults>
pub fn team_search( &self, org: &str, query: TeamSearchQuery, ) -> Request<'_, TeamSearch<'_>, TeamSearchResults>
Search for teams within an organization
org: name of the organization
Sourcepub fn org_unblock_user(
&self,
org: &str,
username: &str,
) -> Request<'_, OrgUnblockUser<'_>, ()>
pub fn org_unblock_user( &self, org: &str, username: &str, ) -> Request<'_, OrgUnblockUser<'_>, ()>
Unblock a user from the organization
org: name of the orgusername: username of the user
Sourcepub fn list_packages(
&self,
owner: &str,
query: ListPackagesQuery,
) -> Request<'_, ListPackages<'_>, (PackageListHeaders, Vec<Package>)>
pub fn list_packages( &self, owner: &str, query: ListPackagesQuery, ) -> Request<'_, ListPackages<'_>, (PackageListHeaders, Vec<Package>)>
Gets all packages of an owner
owner: owner of the packages
Sourcepub fn link_package(
&self,
owner: &str,
type: &str,
name: &str,
repo_name: &str,
) -> Request<'_, LinkPackage<'_>, ()>
pub fn link_package( &self, owner: &str, type: &str, name: &str, repo_name: &str, ) -> Request<'_, LinkPackage<'_>, ()>
Link a package to a repository
owner: owner of the packagetype: type of the packagename: name of the packagerepo_name: name of the repository to link.
Sourcepub fn unlink_package(
&self,
owner: &str,
type: &str,
name: &str,
) -> Request<'_, UnlinkPackage<'_>, ()>
pub fn unlink_package( &self, owner: &str, type: &str, name: &str, ) -> Request<'_, UnlinkPackage<'_>, ()>
Unlink a package from a repository
owner: owner of the packagetype: type of the packagename: name of the package
Sourcepub fn get_package(
&self,
owner: &str,
type: &str,
name: &str,
version: &str,
) -> Request<'_, GetPackage<'_>, Package>
pub fn get_package( &self, owner: &str, type: &str, name: &str, version: &str, ) -> Request<'_, GetPackage<'_>, Package>
Gets a package
owner: owner of the packagetype: type of the packagename: name of the packageversion: version of the package
Sourcepub fn delete_package(
&self,
owner: &str,
type: &str,
name: &str,
version: &str,
) -> Request<'_, DeletePackage<'_>, ()>
pub fn delete_package( &self, owner: &str, type: &str, name: &str, version: &str, ) -> Request<'_, DeletePackage<'_>, ()>
Delete a package
owner: owner of the packagetype: type of the packagename: name of the packageversion: version of the package
Sourcepub fn list_package_files(
&self,
owner: &str,
type: &str,
name: &str,
version: &str,
) -> Request<'_, ListPackageFiles<'_>, Vec<PackageFile>>
pub fn list_package_files( &self, owner: &str, type: &str, name: &str, version: &str, ) -> Request<'_, ListPackageFiles<'_>, Vec<PackageFile>>
Gets all files of a package
owner: owner of the packagetype: type of the packagename: name of the packageversion: version of the package
Sourcepub fn issue_search_issues(
&self,
query: IssueSearchIssuesQuery,
) -> Request<'_, IssueSearchIssues, (IssueListHeaders, Vec<Issue>)>
pub fn issue_search_issues( &self, query: IssueSearchIssuesQuery, ) -> Request<'_, IssueSearchIssues, (IssueListHeaders, Vec<Issue>)>
Search for issues across the repositories that the user has access to
Sourcepub fn repo_migrate(
&self,
body: MigrateRepoOptions,
) -> Request<'_, RepoMigrate, Repository>
pub fn repo_migrate( &self, body: MigrateRepoOptions, ) -> Request<'_, RepoMigrate, Repository>
Migrate a remote git repository
body: SeeMigrateRepoOptions
Sourcepub fn repo_search(
&self,
query: RepoSearchQuery,
) -> Request<'_, RepoSearch, SearchResults>
pub fn repo_search( &self, query: RepoSearchQuery, ) -> Request<'_, RepoSearch, SearchResults>
Search for repositories
Sourcepub fn repo_get(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoGet<'_>, Repository>
pub fn repo_get( &self, owner: &str, repo: &str, ) -> Request<'_, RepoGet<'_>, Repository>
Get a repository
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_delete(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoDelete<'_>, ()>
pub fn repo_delete( &self, owner: &str, repo: &str, ) -> Request<'_, RepoDelete<'_>, ()>
Delete a repository
owner: owner of the repo to deleterepo: name of the repo to delete
Sourcepub fn repo_edit(
&self,
owner: &str,
repo: &str,
body: EditRepoOption,
) -> Request<'_, RepoEdit<'_>, Repository>
pub fn repo_edit( &self, owner: &str, repo: &str, body: EditRepoOption, ) -> Request<'_, RepoEdit<'_>, Repository>
Edit a repository’s properties. Only fields that are set will be changed.
owner: owner of the repo to editrepo: name of the repo to editbody: Properties of a repo that you can edit SeeEditRepoOption
Sourcepub fn repo_search_run_jobs(
&self,
owner: &str,
repo: &str,
query: RepoSearchRunJobsQuery,
) -> Request<'_, RepoSearchRunJobs<'_>, Vec<ActionRunJob>>
pub fn repo_search_run_jobs( &self, owner: &str, repo: &str, query: RepoSearchRunJobsQuery, ) -> Request<'_, RepoSearchRunJobs<'_>, Vec<ActionRunJob>>
Search for repository’s action jobs according filter conditions
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_get_runner_registration_token(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoGetRunnerRegistrationToken<'_>, RegistrationToken>
pub fn repo_get_runner_registration_token( &self, owner: &str, repo: &str, ) -> Request<'_, RepoGetRunnerRegistrationToken<'_>, RegistrationToken>
Get a repository’s actions runner registration token
owner: owner of the reporepo: name of the repo
Sourcepub fn list_action_runs(
&self,
owner: &str,
repo: &str,
query: ListActionRunsQuery,
) -> Request<'_, ListActionRuns<'_>, ListActionRunResponse>
pub fn list_action_runs( &self, owner: &str, repo: &str, query: ListActionRunsQuery, ) -> Request<'_, ListActionRuns<'_>, ListActionRunResponse>
List a repository’s action runs
owner: owner of the reporepo: name of the repo
Sourcepub fn get_action_run(
&self,
owner: &str,
repo: &str,
run_id: i64,
) -> Request<'_, GetActionRun<'_>, ActionRun>
pub fn get_action_run( &self, owner: &str, repo: &str, run_id: i64, ) -> Request<'_, GetActionRun<'_>, ActionRun>
Get an action run
owner: owner of the reporepo: name of the reporun_id: id of the action run
Sourcepub fn repo_list_actions_secrets(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListActionsSecrets<'_>, (SecretListHeaders, Vec<Secret>)>
pub fn repo_list_actions_secrets( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListActionsSecrets<'_>, (SecretListHeaders, Vec<Secret>)>
List an repo’s actions secrets
owner: owner of the repositoryrepo: name of the repository
Sourcepub fn update_repo_secret(
&self,
owner: &str,
repo: &str,
secretname: &str,
body: CreateOrUpdateSecretOption,
) -> Request<'_, UpdateRepoSecret<'_>, ()>
pub fn update_repo_secret( &self, owner: &str, repo: &str, secretname: &str, body: CreateOrUpdateSecretOption, ) -> Request<'_, UpdateRepoSecret<'_>, ()>
Create or Update a secret value in a repository
owner: owner of the repositoryrepo: name of the repositorysecretname: name of the secretbody: SeeCreateOrUpdateSecretOption
Sourcepub fn delete_repo_secret(
&self,
owner: &str,
repo: &str,
secretname: &str,
) -> Request<'_, DeleteRepoSecret<'_>, ()>
pub fn delete_repo_secret( &self, owner: &str, repo: &str, secretname: &str, ) -> Request<'_, DeleteRepoSecret<'_>, ()>
Delete a secret in a repository
owner: owner of the repositoryrepo: name of the repositorysecretname: name of the secret
Sourcepub fn list_action_tasks(
&self,
owner: &str,
repo: &str,
) -> Request<'_, ListActionTasks<'_>, ActionTaskResponse>
pub fn list_action_tasks( &self, owner: &str, repo: &str, ) -> Request<'_, ListActionTasks<'_>, ActionTaskResponse>
List a repository’s action tasks
owner: owner of the reporepo: name of the repo
Sourcepub fn get_repo_variables_list(
&self,
owner: &str,
repo: &str,
) -> Request<'_, GetRepoVariablesList<'_>, (VariableListHeaders, Vec<ActionVariable>)>
pub fn get_repo_variables_list( &self, owner: &str, repo: &str, ) -> Request<'_, GetRepoVariablesList<'_>, (VariableListHeaders, Vec<ActionVariable>)>
Get repo-level variables list
owner: name of the ownerrepo: name of the repository
Sourcepub fn get_repo_variable(
&self,
owner: &str,
repo: &str,
variablename: &str,
) -> Request<'_, GetRepoVariable<'_>, ActionVariable>
pub fn get_repo_variable( &self, owner: &str, repo: &str, variablename: &str, ) -> Request<'_, GetRepoVariable<'_>, ActionVariable>
Get a repo-level variable
owner: name of the ownerrepo: name of the repositoryvariablename: name of the variable
Sourcepub fn update_repo_variable(
&self,
owner: &str,
repo: &str,
variablename: &str,
body: UpdateVariableOption,
) -> Request<'_, UpdateRepoVariable<'_>, ()>
pub fn update_repo_variable( &self, owner: &str, repo: &str, variablename: &str, body: UpdateVariableOption, ) -> Request<'_, UpdateRepoVariable<'_>, ()>
Update a repo-level variable
owner: name of the ownerrepo: name of the repositoryvariablename: name of the variablebody: SeeUpdateVariableOption
Sourcepub fn create_repo_variable(
&self,
owner: &str,
repo: &str,
variablename: &str,
body: CreateVariableOption,
) -> Request<'_, CreateRepoVariable<'_>, ()>
pub fn create_repo_variable( &self, owner: &str, repo: &str, variablename: &str, body: CreateVariableOption, ) -> Request<'_, CreateRepoVariable<'_>, ()>
Create a repo-level variable
owner: name of the ownerrepo: name of the repositoryvariablename: name of the variablebody: SeeCreateVariableOption
Sourcepub fn delete_repo_variable(
&self,
owner: &str,
repo: &str,
variablename: &str,
) -> Request<'_, DeleteRepoVariable<'_>, ()>
pub fn delete_repo_variable( &self, owner: &str, repo: &str, variablename: &str, ) -> Request<'_, DeleteRepoVariable<'_>, ()>
Delete a repo-level variable
owner: name of the ownerrepo: name of the repositoryvariablename: name of the variable
Sourcepub fn dispatch_workflow(
&self,
owner: &str,
repo: &str,
workflowfilename: &str,
body: DispatchWorkflowOption,
) -> Request<'_, DispatchWorkflow<'_>, Option<DispatchWorkflowRun>>
pub fn dispatch_workflow( &self, owner: &str, repo: &str, workflowfilename: &str, body: DispatchWorkflowOption, ) -> Request<'_, DispatchWorkflow<'_>, Option<DispatchWorkflowRun>>
Dispatches a workflow
owner: owner of the reporepo: name of the repoworkflowfilename: name of the workflowbody: SeeDispatchWorkflowOption
Sourcepub fn repo_list_activity_feeds(
&self,
owner: &str,
repo: &str,
query: RepoListActivityFeedsQuery,
) -> Request<'_, RepoListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
pub fn repo_list_activity_feeds( &self, owner: &str, repo: &str, query: RepoListActivityFeedsQuery, ) -> Request<'_, RepoListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
List a repository’s activity feeds
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_get_archive(
&self,
owner: &str,
repo: &str,
archive: &str,
) -> Request<'_, RepoGetArchive<'_>, Bytes>
pub fn repo_get_archive( &self, owner: &str, repo: &str, archive: &str, ) -> Request<'_, RepoGetArchive<'_>, Bytes>
Get an archive of a repository
owner: owner of the reporepo: name of the repoarchive: the git reference for download with attached archive format (e.g. master.zip)
Sourcepub fn repo_get_assignees(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoGetAssignees<'_>, (UserListHeaders, Vec<User>)>
pub fn repo_get_assignees( &self, owner: &str, repo: &str, ) -> Request<'_, RepoGetAssignees<'_>, (UserListHeaders, Vec<User>)>
Return all users that have write access and can be assigned to issues
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_update_avatar(
&self,
owner: &str,
repo: &str,
body: UpdateRepoAvatarOption,
) -> Request<'_, RepoUpdateAvatar<'_>, ()>
pub fn repo_update_avatar( &self, owner: &str, repo: &str, body: UpdateRepoAvatarOption, ) -> Request<'_, RepoUpdateAvatar<'_>, ()>
Update a repository’s avatar
owner: owner of the reporepo: name of the repobody: SeeUpdateRepoAvatarOption
Sourcepub fn repo_delete_avatar(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoDeleteAvatar<'_>, ()>
pub fn repo_delete_avatar( &self, owner: &str, repo: &str, ) -> Request<'_, RepoDeleteAvatar<'_>, ()>
Delete a repository’s avatar
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_list_branch_protection(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListBranchProtection<'_>, Vec<BranchProtection>>
pub fn repo_list_branch_protection( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListBranchProtection<'_>, Vec<BranchProtection>>
List branch protections for a repository
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_create_branch_protection(
&self,
owner: &str,
repo: &str,
body: CreateBranchProtectionOption,
) -> Request<'_, RepoCreateBranchProtection<'_>, BranchProtection>
pub fn repo_create_branch_protection( &self, owner: &str, repo: &str, body: CreateBranchProtectionOption, ) -> Request<'_, RepoCreateBranchProtection<'_>, BranchProtection>
Create a branch protections for a repository
owner: owner of the reporepo: name of the repobody: SeeCreateBranchProtectionOption
Sourcepub fn repo_get_branch_protection(
&self,
owner: &str,
repo: &str,
name: &str,
) -> Request<'_, RepoGetBranchProtection<'_>, BranchProtection>
pub fn repo_get_branch_protection( &self, owner: &str, repo: &str, name: &str, ) -> Request<'_, RepoGetBranchProtection<'_>, BranchProtection>
Get a specific branch protection for the repository
owner: owner of the reporepo: name of the reponame: name of protected branch
Sourcepub fn repo_delete_branch_protection(
&self,
owner: &str,
repo: &str,
name: &str,
) -> Request<'_, RepoDeleteBranchProtection<'_>, ()>
pub fn repo_delete_branch_protection( &self, owner: &str, repo: &str, name: &str, ) -> Request<'_, RepoDeleteBranchProtection<'_>, ()>
Delete a specific branch protection for the repository
owner: owner of the reporepo: name of the reponame: name of protected branch
Sourcepub fn repo_edit_branch_protection(
&self,
owner: &str,
repo: &str,
name: &str,
body: EditBranchProtectionOption,
) -> Request<'_, RepoEditBranchProtection<'_>, BranchProtection>
pub fn repo_edit_branch_protection( &self, owner: &str, repo: &str, name: &str, body: EditBranchProtectionOption, ) -> Request<'_, RepoEditBranchProtection<'_>, BranchProtection>
Edit a branch protections for a repository. Only fields that are set will be changed
owner: owner of the reporepo: name of the reponame: name of protected branchbody: SeeEditBranchProtectionOption
Sourcepub fn repo_list_branches(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListBranches<'_>, (BranchListHeaders, Vec<Branch>)>
pub fn repo_list_branches( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListBranches<'_>, (BranchListHeaders, Vec<Branch>)>
List a repository’s branches
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_create_branch(
&self,
owner: &str,
repo: &str,
body: CreateBranchRepoOption,
) -> Request<'_, RepoCreateBranch<'_>, Branch>
pub fn repo_create_branch( &self, owner: &str, repo: &str, body: CreateBranchRepoOption, ) -> Request<'_, RepoCreateBranch<'_>, Branch>
Create a branch
owner: owner of the reporepo: name of the repobody: SeeCreateBranchRepoOption
Sourcepub fn repo_get_branch(
&self,
owner: &str,
repo: &str,
branch: &str,
) -> Request<'_, RepoGetBranch<'_>, Branch>
pub fn repo_get_branch( &self, owner: &str, repo: &str, branch: &str, ) -> Request<'_, RepoGetBranch<'_>, Branch>
Retrieve a specific branch from a repository, including its effective branch protection
owner: owner of the reporepo: name of the repobranch: branch to get
Sourcepub fn repo_delete_branch(
&self,
owner: &str,
repo: &str,
branch: &str,
) -> Request<'_, RepoDeleteBranch<'_>, ()>
pub fn repo_delete_branch( &self, owner: &str, repo: &str, branch: &str, ) -> Request<'_, RepoDeleteBranch<'_>, ()>
Delete a specific branch from a repository
owner: owner of the reporepo: name of the repobranch: branch to delete
Sourcepub fn repo_update_branch(
&self,
owner: &str,
repo: &str,
branch: &str,
body: UpdateBranchRepoOption,
) -> Request<'_, RepoUpdateBranch<'_>, ()>
pub fn repo_update_branch( &self, owner: &str, repo: &str, branch: &str, body: UpdateBranchRepoOption, ) -> Request<'_, RepoUpdateBranch<'_>, ()>
Update a branch
owner: owner of the reporepo: name of the repobranch: name of the branchbody: SeeUpdateBranchRepoOption
Sourcepub fn repo_list_collaborators(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListCollaborators<'_>, (UserListHeaders, Vec<User>)>
pub fn repo_list_collaborators( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListCollaborators<'_>, (UserListHeaders, Vec<User>)>
List a repository’s collaborators
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_check_collaborator(
&self,
owner: &str,
repo: &str,
collaborator: &str,
) -> Request<'_, RepoCheckCollaborator<'_>, ()>
pub fn repo_check_collaborator( &self, owner: &str, repo: &str, collaborator: &str, ) -> Request<'_, RepoCheckCollaborator<'_>, ()>
Check if a user is a collaborator of a repository
owner: owner of the reporepo: name of the repocollaborator: username of the collaborator
Sourcepub fn repo_add_collaborator(
&self,
owner: &str,
repo: &str,
collaborator: &str,
body: AddCollaboratorOption,
) -> Request<'_, RepoAddCollaborator<'_>, ()>
pub fn repo_add_collaborator( &self, owner: &str, repo: &str, collaborator: &str, body: AddCollaboratorOption, ) -> Request<'_, RepoAddCollaborator<'_>, ()>
Add a collaborator to a repository
owner: owner of the reporepo: name of the repocollaborator: username of the collaborator to addbody: SeeAddCollaboratorOption
Sourcepub fn repo_delete_collaborator(
&self,
owner: &str,
repo: &str,
collaborator: &str,
) -> Request<'_, RepoDeleteCollaborator<'_>, ()>
pub fn repo_delete_collaborator( &self, owner: &str, repo: &str, collaborator: &str, ) -> Request<'_, RepoDeleteCollaborator<'_>, ()>
Delete a collaborator from a repository
owner: owner of the reporepo: name of the repocollaborator: username of the collaborator to delete
Sourcepub fn repo_get_repo_permissions(
&self,
owner: &str,
repo: &str,
collaborator: &str,
) -> Request<'_, RepoGetRepoPermissions<'_>, RepoCollaboratorPermission>
pub fn repo_get_repo_permissions( &self, owner: &str, repo: &str, collaborator: &str, ) -> Request<'_, RepoGetRepoPermissions<'_>, RepoCollaboratorPermission>
Get repository permissions for a user
owner: owner of the reporepo: name of the repocollaborator: username of the collaborator
Sourcepub fn repo_get_all_commits(
&self,
owner: &str,
repo: &str,
query: RepoGetAllCommitsQuery,
) -> Request<'_, RepoGetAllCommits<'_>, (CommitListHeaders, Vec<Commit>)>
pub fn repo_get_all_commits( &self, owner: &str, repo: &str, query: RepoGetAllCommitsQuery, ) -> Request<'_, RepoGetAllCommits<'_>, (CommitListHeaders, Vec<Commit>)>
Get a list of all commits from a repository
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_get_combined_status_by_ref(
&self,
owner: &str,
repo: &str,
ref: &str,
) -> Request<'_, RepoGetCombinedStatusByRef<'_>, (CombinedStatusHeaders, CombinedStatus)>
pub fn repo_get_combined_status_by_ref( &self, owner: &str, repo: &str, ref: &str, ) -> Request<'_, RepoGetCombinedStatusByRef<'_>, (CombinedStatusHeaders, CombinedStatus)>
Get a commit’s combined status, by branch/tag/commit reference
owner: owner of the reporepo: name of the reporef: name of branch/tag/commit
Sourcepub fn repo_list_statuses_by_ref(
&self,
owner: &str,
repo: &str,
ref: &str,
query: RepoListStatusesByRefQuery,
) -> Request<'_, RepoListStatusesByRef<'_>, (CommitStatusListHeaders, Vec<CommitStatus>)>
pub fn repo_list_statuses_by_ref( &self, owner: &str, repo: &str, ref: &str, query: RepoListStatusesByRefQuery, ) -> Request<'_, RepoListStatusesByRef<'_>, (CommitStatusListHeaders, Vec<CommitStatus>)>
Get a commit’s statuses, by branch/tag/commit reference
owner: owner of the reporepo: name of the reporef: name of branch/tag/commit
Sourcepub fn repo_get_commit_pull_request(
&self,
owner: &str,
repo: &str,
sha: &str,
) -> Request<'_, RepoGetCommitPullRequest<'_>, PullRequest>
pub fn repo_get_commit_pull_request( &self, owner: &str, repo: &str, sha: &str, ) -> Request<'_, RepoGetCommitPullRequest<'_>, PullRequest>
Get the pull request of the commit
owner: owner of the reporepo: name of the reposha: SHA of the commit to get
Sourcepub fn repo_compare_diff(
&self,
owner: &str,
repo: &str,
basehead: &str,
) -> Request<'_, RepoCompareDiff<'_>, Compare>
pub fn repo_compare_diff( &self, owner: &str, repo: &str, basehead: &str, ) -> Request<'_, RepoCompareDiff<'_>, Compare>
Get commit comparison information
owner: owner of the reporepo: name of the repobasehead: compare two branches or commits
Sourcepub fn repo_get_contents_list(
&self,
owner: &str,
repo: &str,
query: RepoGetContentsListQuery,
) -> Request<'_, RepoGetContentsList<'_>, Vec<ContentsResponse>>
pub fn repo_get_contents_list( &self, owner: &str, repo: &str, query: RepoGetContentsListQuery, ) -> Request<'_, RepoGetContentsList<'_>, Vec<ContentsResponse>>
Gets the metadata of all the entries of the root dir
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_change_files(
&self,
owner: &str,
repo: &str,
body: ChangeFilesOptions,
) -> Request<'_, RepoChangeFiles<'_>, FilesResponse>
pub fn repo_change_files( &self, owner: &str, repo: &str, body: ChangeFilesOptions, ) -> Request<'_, RepoChangeFiles<'_>, FilesResponse>
Modify multiple files in a repository
owner: owner of the reporepo: name of the repobody: SeeChangeFilesOptions
Sourcepub fn repo_get_contents(
&self,
owner: &str,
repo: &str,
filepath: &str,
query: RepoGetContentsQuery,
) -> Request<'_, RepoGetContents<'_>, ContentsResponse>
pub fn repo_get_contents( &self, owner: &str, repo: &str, filepath: &str, query: RepoGetContentsQuery, ) -> Request<'_, RepoGetContents<'_>, ContentsResponse>
Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
owner: owner of the reporepo: name of the repofilepath: path of the dir, file, symlink or submodule in the repo
Sourcepub fn repo_update_file(
&self,
owner: &str,
repo: &str,
filepath: &str,
body: UpdateFileOptions,
) -> Request<'_, RepoUpdateFile<'_>, FileResponse>
pub fn repo_update_file( &self, owner: &str, repo: &str, filepath: &str, body: UpdateFileOptions, ) -> Request<'_, RepoUpdateFile<'_>, FileResponse>
Update a file in a repository
owner: owner of the reporepo: name of the repofilepath: path of the file to updatebody: SeeUpdateFileOptions
Sourcepub fn repo_create_file(
&self,
owner: &str,
repo: &str,
filepath: &str,
body: CreateFileOptions,
) -> Request<'_, RepoCreateFile<'_>, FileResponse>
pub fn repo_create_file( &self, owner: &str, repo: &str, filepath: &str, body: CreateFileOptions, ) -> Request<'_, RepoCreateFile<'_>, FileResponse>
Create a file in a repository
owner: owner of the reporepo: name of the repofilepath: path of the file to createbody: SeeCreateFileOptions
Sourcepub fn repo_delete_file(
&self,
owner: &str,
repo: &str,
filepath: &str,
body: DeleteFileOptions,
) -> Request<'_, RepoDeleteFile<'_>, FileDeleteResponse>
pub fn repo_delete_file( &self, owner: &str, repo: &str, filepath: &str, body: DeleteFileOptions, ) -> Request<'_, RepoDeleteFile<'_>, FileDeleteResponse>
Delete a file in a repository
owner: owner of the reporepo: name of the repofilepath: path of the file to deletebody: SeeDeleteFileOptions
Sourcepub fn repo_convert(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoConvert<'_>, Repository>
pub fn repo_convert( &self, owner: &str, repo: &str, ) -> Request<'_, RepoConvert<'_>, Repository>
Convert a mirror repo to a normal repo.
owner: owner of the repo to convertrepo: name of the repo to convert
Sourcepub fn repo_apply_diff_patch(
&self,
owner: &str,
repo: &str,
body: UpdateFileOptions,
) -> Request<'_, RepoApplyDiffPatch<'_>, FileResponse>
pub fn repo_apply_diff_patch( &self, owner: &str, repo: &str, body: UpdateFileOptions, ) -> Request<'_, RepoApplyDiffPatch<'_>, FileResponse>
Apply diff patch to repository
owner: owner of the reporepo: name of the repobody: SeeUpdateFileOptions
Sourcepub fn repo_get_editor_config(
&self,
owner: &str,
repo: &str,
filepath: &str,
query: RepoGetEditorConfigQuery,
) -> Request<'_, RepoGetEditorConfig<'_>, BTreeMap<String, String>>
pub fn repo_get_editor_config( &self, owner: &str, repo: &str, filepath: &str, query: RepoGetEditorConfigQuery, ) -> Request<'_, RepoGetEditorConfig<'_>, BTreeMap<String, String>>
Get the EditorConfig definitions of a file in a repository
owner: owner of the reporepo: name of the repofilepath: filepath of file to get
Sourcepub fn repo_list_flags(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListFlags<'_>, Vec<String>>
pub fn repo_list_flags( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListFlags<'_>, Vec<String>>
List a repository’s flags
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_replace_all_flags(
&self,
owner: &str,
repo: &str,
body: ReplaceFlagsOption,
) -> Request<'_, RepoReplaceAllFlags<'_>, ()>
pub fn repo_replace_all_flags( &self, owner: &str, repo: &str, body: ReplaceFlagsOption, ) -> Request<'_, RepoReplaceAllFlags<'_>, ()>
Replace all flags of a repository
owner: owner of the reporepo: name of the repobody: SeeReplaceFlagsOption
Sourcepub fn repo_delete_all_flags(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoDeleteAllFlags<'_>, ()>
pub fn repo_delete_all_flags( &self, owner: &str, repo: &str, ) -> Request<'_, RepoDeleteAllFlags<'_>, ()>
Remove all flags from a repository
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_check_flag(
&self,
owner: &str,
repo: &str,
flag: &str,
) -> Request<'_, RepoCheckFlag<'_>, ()>
pub fn repo_check_flag( &self, owner: &str, repo: &str, flag: &str, ) -> Request<'_, RepoCheckFlag<'_>, ()>
Check if a repository has a given flag
owner: owner of the reporepo: name of the repoflag: name of the flag
Sourcepub fn repo_add_flag(
&self,
owner: &str,
repo: &str,
flag: &str,
) -> Request<'_, RepoAddFlag<'_>, ()>
pub fn repo_add_flag( &self, owner: &str, repo: &str, flag: &str, ) -> Request<'_, RepoAddFlag<'_>, ()>
Add a flag to a repository
owner: owner of the reporepo: name of the repoflag: name of the flag
Sourcepub fn repo_delete_flag(
&self,
owner: &str,
repo: &str,
flag: &str,
) -> Request<'_, RepoDeleteFlag<'_>, ()>
pub fn repo_delete_flag( &self, owner: &str, repo: &str, flag: &str, ) -> Request<'_, RepoDeleteFlag<'_>, ()>
Remove a flag from a repository
owner: owner of the reporepo: name of the repoflag: name of the flag
Sourcepub fn list_forks(
&self,
owner: &str,
repo: &str,
) -> Request<'_, ListForks<'_>, (RepositoryListHeaders, Vec<Repository>)>
pub fn list_forks( &self, owner: &str, repo: &str, ) -> Request<'_, ListForks<'_>, (RepositoryListHeaders, Vec<Repository>)>
List a repository’s forks
owner: owner of the reporepo: name of the repo
Sourcepub fn create_fork(
&self,
owner: &str,
repo: &str,
body: CreateForkOption,
) -> Request<'_, CreateFork<'_>, Repository>
pub fn create_fork( &self, owner: &str, repo: &str, body: CreateForkOption, ) -> Request<'_, CreateFork<'_>, Repository>
Fork a repository
owner: owner of the repo to forkrepo: name of the repo to forkbody: SeeCreateForkOption
Sourcepub fn get_blobs(
&self,
owner: &str,
repo: &str,
query: GetBlobsQuery,
) -> Request<'_, GetBlobs<'_>, Vec<GitBlob>>
pub fn get_blobs( &self, owner: &str, repo: &str, query: GetBlobsQuery, ) -> Request<'_, GetBlobs<'_>, Vec<GitBlob>>
Gets multiple blobs of a repository.
owner: owner of the reporepo: name of the repo
Sourcepub fn get_blob(
&self,
owner: &str,
repo: &str,
sha: &str,
) -> Request<'_, GetBlob<'_>, GitBlob>
pub fn get_blob( &self, owner: &str, repo: &str, sha: &str, ) -> Request<'_, GetBlob<'_>, GitBlob>
Gets the blob of a repository.
owner: owner of the reporepo: name of the reposha: sha of the blob to retrieve
Sourcepub fn repo_get_single_commit(
&self,
owner: &str,
repo: &str,
sha: &str,
query: RepoGetSingleCommitQuery,
) -> Request<'_, RepoGetSingleCommit<'_>, Commit>
pub fn repo_get_single_commit( &self, owner: &str, repo: &str, sha: &str, query: RepoGetSingleCommitQuery, ) -> Request<'_, RepoGetSingleCommit<'_>, Commit>
Get a single commit from a repository
owner: owner of the reporepo: name of the reposha: a git ref or commit sha
Sourcepub fn repo_download_commit_diff_or_patch(
&self,
owner: &str,
repo: &str,
sha: &str,
diff_type: &str,
) -> Request<'_, RepoDownloadCommitDiffOrPatch<'_>, String>
pub fn repo_download_commit_diff_or_patch( &self, owner: &str, repo: &str, sha: &str, diff_type: &str, ) -> Request<'_, RepoDownloadCommitDiffOrPatch<'_>, String>
Get a commit’s diff or patch
owner: owner of the reporepo: name of the reposha: SHA of the commit to getdiffType: whether the output is diff or patch
Sourcepub fn repo_get_note(
&self,
owner: &str,
repo: &str,
sha: &str,
query: RepoGetNoteQuery,
) -> Request<'_, RepoGetNote<'_>, Note>
pub fn repo_get_note( &self, owner: &str, repo: &str, sha: &str, query: RepoGetNoteQuery, ) -> Request<'_, RepoGetNote<'_>, Note>
Get a note corresponding to a single commit from a repository
owner: owner of the reporepo: name of the reposha: a git ref or commit sha
Sourcepub fn repo_set_note(
&self,
owner: &str,
repo: &str,
sha: &str,
body: NoteOptions,
) -> Request<'_, RepoSetNote<'_>, Note>
pub fn repo_set_note( &self, owner: &str, repo: &str, sha: &str, body: NoteOptions, ) -> Request<'_, RepoSetNote<'_>, Note>
Set a note corresponding to a single commit from a repository
owner: owner of the reporepo: name of the reposha: a git ref or commit shabody: SeeNoteOptions
Sourcepub fn repo_remove_note(
&self,
owner: &str,
repo: &str,
sha: &str,
) -> Request<'_, RepoRemoveNote<'_>, ()>
pub fn repo_remove_note( &self, owner: &str, repo: &str, sha: &str, ) -> Request<'_, RepoRemoveNote<'_>, ()>
Removes a note corresponding to a single commit from a repository
owner: owner of the reporepo: name of the reposha: a git ref or commit sha
Sourcepub fn repo_list_all_git_refs(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListAllGitRefs<'_>, Vec<Reference>>
pub fn repo_list_all_git_refs( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListAllGitRefs<'_>, Vec<Reference>>
Get specified ref or filtered repository’s refs
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_list_git_refs(
&self,
owner: &str,
repo: &str,
ref: &str,
) -> Request<'_, RepoListGitRefs<'_>, Vec<Reference>>
pub fn repo_list_git_refs( &self, owner: &str, repo: &str, ref: &str, ) -> Request<'_, RepoListGitRefs<'_>, Vec<Reference>>
Get specified ref or filtered repository’s refs
owner: owner of the reporepo: name of the reporef: part or full name of the ref
Sourcepub fn get_annotated_tag(
&self,
owner: &str,
repo: &str,
sha: &str,
) -> Request<'_, GetAnnotatedTag<'_>, AnnotatedTag>
pub fn get_annotated_tag( &self, owner: &str, repo: &str, sha: &str, ) -> Request<'_, GetAnnotatedTag<'_>, AnnotatedTag>
Gets the tag object of an annotated tag (not lightweight tags)
owner: owner of the reporepo: name of the reposha: sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags.
Sourcepub fn get_tree(
&self,
owner: &str,
repo: &str,
sha: &str,
query: GetTreeQuery,
) -> Request<'_, GetTree<'_>, GitTreeResponse>
pub fn get_tree( &self, owner: &str, repo: &str, sha: &str, query: GetTreeQuery, ) -> Request<'_, GetTree<'_>, GitTreeResponse>
Gets the tree of a repository.
owner: owner of the reporepo: name of the reposha: sha of the commit
Sourcepub fn repo_list_hooks(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListHooks<'_>, (HookListHeaders, Vec<Hook>)>
pub fn repo_list_hooks( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListHooks<'_>, (HookListHeaders, Vec<Hook>)>
List the hooks in a repository
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_create_hook(
&self,
owner: &str,
repo: &str,
body: CreateHookOption,
) -> Request<'_, RepoCreateHook<'_>, Hook>
pub fn repo_create_hook( &self, owner: &str, repo: &str, body: CreateHookOption, ) -> Request<'_, RepoCreateHook<'_>, Hook>
Create a hook
owner: owner of the reporepo: name of the repobody: SeeCreateHookOption
Sourcepub fn repo_list_git_hooks(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListGitHooks<'_>, Vec<GitHook>>
pub fn repo_list_git_hooks( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListGitHooks<'_>, Vec<GitHook>>
List the Git hooks in a repository
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_get_git_hook(
&self,
owner: &str,
repo: &str,
id: &str,
) -> Request<'_, RepoGetGitHook<'_>, GitHook>
pub fn repo_get_git_hook( &self, owner: &str, repo: &str, id: &str, ) -> Request<'_, RepoGetGitHook<'_>, GitHook>
Get a Git hook
owner: owner of the reporepo: name of the repoid: id of the hook to get
Sourcepub fn repo_delete_git_hook(
&self,
owner: &str,
repo: &str,
id: &str,
) -> Request<'_, RepoDeleteGitHook<'_>, ()>
pub fn repo_delete_git_hook( &self, owner: &str, repo: &str, id: &str, ) -> Request<'_, RepoDeleteGitHook<'_>, ()>
Delete a Git hook in a repository
owner: owner of the reporepo: name of the repoid: id of the hook to get
Sourcepub fn repo_edit_git_hook(
&self,
owner: &str,
repo: &str,
id: &str,
body: EditGitHookOption,
) -> Request<'_, RepoEditGitHook<'_>, GitHook>
pub fn repo_edit_git_hook( &self, owner: &str, repo: &str, id: &str, body: EditGitHookOption, ) -> Request<'_, RepoEditGitHook<'_>, GitHook>
Edit a Git hook in a repository
owner: owner of the reporepo: name of the repoid: id of the hook to getbody: SeeEditGitHookOption
Sourcepub fn repo_get_hook(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, RepoGetHook<'_>, Hook>
pub fn repo_get_hook( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, RepoGetHook<'_>, Hook>
Get a hook
owner: owner of the reporepo: name of the repoid: id of the hook to get
Sourcepub fn repo_delete_hook(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, RepoDeleteHook<'_>, ()>
pub fn repo_delete_hook( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, RepoDeleteHook<'_>, ()>
Delete a hook in a repository
owner: owner of the reporepo: name of the repoid: id of the hook to delete
Sourcepub fn repo_edit_hook(
&self,
owner: &str,
repo: &str,
id: i64,
body: EditHookOption,
) -> Request<'_, RepoEditHook<'_>, Hook>
pub fn repo_edit_hook( &self, owner: &str, repo: &str, id: i64, body: EditHookOption, ) -> Request<'_, RepoEditHook<'_>, Hook>
Edit a hook in a repository
owner: owner of the reporepo: name of the repoid: index of the hookbody: SeeEditHookOption
Sourcepub fn repo_test_hook(
&self,
owner: &str,
repo: &str,
id: i64,
query: RepoTestHookQuery,
) -> Request<'_, RepoTestHook<'_>, ()>
pub fn repo_test_hook( &self, owner: &str, repo: &str, id: i64, query: RepoTestHookQuery, ) -> Request<'_, RepoTestHook<'_>, ()>
Test a push webhook
owner: owner of the reporepo: name of the repoid: id of the hook to test
Sourcepub fn repo_get_issue_config(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoGetIssueConfig<'_>, IssueConfig>
pub fn repo_get_issue_config( &self, owner: &str, repo: &str, ) -> Request<'_, RepoGetIssueConfig<'_>, IssueConfig>
Returns the issue config for a repo
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_validate_issue_config(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoValidateIssueConfig<'_>, IssueConfigValidation>
pub fn repo_validate_issue_config( &self, owner: &str, repo: &str, ) -> Request<'_, RepoValidateIssueConfig<'_>, IssueConfigValidation>
Returns the validation information for a issue config
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_get_issue_templates(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoGetIssueTemplates<'_>, Vec<IssueTemplate>>
pub fn repo_get_issue_templates( &self, owner: &str, repo: &str, ) -> Request<'_, RepoGetIssueTemplates<'_>, Vec<IssueTemplate>>
Get available issue templates for a repository
owner: owner of the reporepo: name of the repo
Sourcepub fn issue_list_issues(
&self,
owner: &str,
repo: &str,
query: IssueListIssuesQuery,
) -> Request<'_, IssueListIssues<'_>, (IssueListHeaders, Vec<Issue>)>
pub fn issue_list_issues( &self, owner: &str, repo: &str, query: IssueListIssuesQuery, ) -> Request<'_, IssueListIssues<'_>, (IssueListHeaders, Vec<Issue>)>
List a repository’s issues
owner: owner of the reporepo: name of the repo
Sourcepub fn issue_create_issue(
&self,
owner: &str,
repo: &str,
body: CreateIssueOption,
) -> Request<'_, IssueCreateIssue<'_>, Issue>
pub fn issue_create_issue( &self, owner: &str, repo: &str, body: CreateIssueOption, ) -> Request<'_, IssueCreateIssue<'_>, Issue>
Create an issue. If using deadline only the date will be taken into account, and time of day ignored.
owner: owner of the reporepo: name of the repobody: SeeCreateIssueOption
Sourcepub fn issue_get_repo_comments(
&self,
owner: &str,
repo: &str,
query: IssueGetRepoCommentsQuery,
) -> Request<'_, IssueGetRepoComments<'_>, (CommentListHeaders, Vec<Comment>)>
pub fn issue_get_repo_comments( &self, owner: &str, repo: &str, query: IssueGetRepoCommentsQuery, ) -> Request<'_, IssueGetRepoComments<'_>, (CommentListHeaders, Vec<Comment>)>
List all comments in a repository
owner: owner of the reporepo: name of the repo
Sourcepub fn issue_get_comment(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, IssueGetComment<'_>, Option<Comment>>
pub fn issue_get_comment( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, IssueGetComment<'_>, Option<Comment>>
Get a comment
owner: owner of the reporepo: name of the repoid: id of the comment
Sourcepub fn issue_delete_comment(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, IssueDeleteComment<'_>, ()>
pub fn issue_delete_comment( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, IssueDeleteComment<'_>, ()>
Delete a comment
owner: owner of the reporepo: name of the repoid: id of comment to delete
Sourcepub fn issue_edit_comment(
&self,
owner: &str,
repo: &str,
id: i64,
body: EditIssueCommentOption,
) -> Request<'_, IssueEditComment<'_>, Option<Comment>>
pub fn issue_edit_comment( &self, owner: &str, repo: &str, id: i64, body: EditIssueCommentOption, ) -> Request<'_, IssueEditComment<'_>, Option<Comment>>
Edit a comment
owner: owner of the reporepo: name of the repoid: id of the comment to editbody: SeeEditIssueCommentOption
Sourcepub fn issue_list_issue_comment_attachments(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, IssueListIssueCommentAttachments<'_>, Vec<Attachment>>
pub fn issue_list_issue_comment_attachments( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, IssueListIssueCommentAttachments<'_>, Vec<Attachment>>
List comment’s attachments
owner: owner of the reporepo: name of the repoid: id of the comment
Sourcepub fn issue_create_issue_comment_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment: &[u8],
query: IssueCreateIssueCommentAttachmentQuery,
) -> Request<'_, IssueCreateIssueCommentAttachment<'_>, Attachment>
pub fn issue_create_issue_comment_attachment( &self, owner: &str, repo: &str, id: i64, attachment: &[u8], query: IssueCreateIssueCommentAttachmentQuery, ) -> Request<'_, IssueCreateIssueCommentAttachment<'_>, Attachment>
Create a comment attachment
owner: owner of the reporepo: name of the repoid: id of the commentattachment: attachment to upload
Sourcepub fn issue_get_issue_comment_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment_id: i64,
) -> Request<'_, IssueGetIssueCommentAttachment<'_>, Attachment>
pub fn issue_get_issue_comment_attachment( &self, owner: &str, repo: &str, id: i64, attachment_id: i64, ) -> Request<'_, IssueGetIssueCommentAttachment<'_>, Attachment>
Get a comment attachment
owner: owner of the reporepo: name of the repoid: id of the commentattachment_id: id of the attachment to get
Sourcepub fn issue_delete_issue_comment_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment_id: i64,
) -> Request<'_, IssueDeleteIssueCommentAttachment<'_>, ()>
pub fn issue_delete_issue_comment_attachment( &self, owner: &str, repo: &str, id: i64, attachment_id: i64, ) -> Request<'_, IssueDeleteIssueCommentAttachment<'_>, ()>
Delete a comment attachment
owner: owner of the reporepo: name of the repoid: id of the commentattachment_id: id of the attachment to delete
Sourcepub fn issue_edit_issue_comment_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment_id: i64,
body: EditAttachmentOptions,
) -> Request<'_, IssueEditIssueCommentAttachment<'_>, Attachment>
pub fn issue_edit_issue_comment_attachment( &self, owner: &str, repo: &str, id: i64, attachment_id: i64, body: EditAttachmentOptions, ) -> Request<'_, IssueEditIssueCommentAttachment<'_>, Attachment>
Edit a comment attachment
owner: owner of the reporepo: name of the repoid: id of the commentattachment_id: id of the attachment to editbody: SeeEditAttachmentOptions
Sourcepub fn issue_get_comment_reactions(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, IssueGetCommentReactions<'_>, Vec<Reaction>>
pub fn issue_get_comment_reactions( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, IssueGetCommentReactions<'_>, Vec<Reaction>>
Get a list of reactions from a comment of an issue
owner: owner of the reporepo: name of the repoid: id of the comment to edit
Sourcepub fn issue_post_comment_reaction(
&self,
owner: &str,
repo: &str,
id: i64,
content: EditReactionOption,
) -> Request<'_, IssuePostCommentReaction<'_>, Reaction>
pub fn issue_post_comment_reaction( &self, owner: &str, repo: &str, id: i64, content: EditReactionOption, ) -> Request<'_, IssuePostCommentReaction<'_>, Reaction>
Add a reaction to a comment of an issue
owner: owner of the reporepo: name of the repoid: id of the comment to editcontent: SeeEditReactionOption
Sourcepub fn issue_delete_comment_reaction(
&self,
owner: &str,
repo: &str,
id: i64,
content: EditReactionOption,
) -> Request<'_, IssueDeleteCommentReaction<'_>, ()>
pub fn issue_delete_comment_reaction( &self, owner: &str, repo: &str, id: i64, content: EditReactionOption, ) -> Request<'_, IssueDeleteCommentReaction<'_>, ()>
Remove a reaction from a comment of an issue
owner: owner of the reporepo: name of the repoid: id of the comment to editcontent: SeeEditReactionOption
Sourcepub fn repo_list_pinned_issues(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListPinnedIssues<'_>, Vec<Issue>>
pub fn repo_list_pinned_issues( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListPinnedIssues<'_>, Vec<Issue>>
List a repo’s pinned issues
owner: owner of the reporepo: name of the repo
Sourcepub fn issue_get_issue(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueGetIssue<'_>, Issue>
pub fn issue_get_issue( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueGetIssue<'_>, Issue>
Get an issue
owner: owner of the reporepo: name of the repoindex: index of the issue to get
Sourcepub fn issue_delete(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueDelete<'_>, ()>
pub fn issue_delete( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueDelete<'_>, ()>
Delete an issue
owner: owner of the reporepo: name of the repoindex: index of issue to delete
Sourcepub fn issue_edit_issue(
&self,
owner: &str,
repo: &str,
index: i64,
body: EditIssueOption,
) -> Request<'_, IssueEditIssue<'_>, Issue>
pub fn issue_edit_issue( &self, owner: &str, repo: &str, index: i64, body: EditIssueOption, ) -> Request<'_, IssueEditIssue<'_>, Issue>
Edit an issue. If using deadline only the date will be taken into account, and time of day ignored.
owner: owner of the reporepo: name of the repoindex: index of the issue to editbody: SeeEditIssueOption
Sourcepub fn issue_list_issue_attachments(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueListIssueAttachments<'_>, Vec<Attachment>>
pub fn issue_list_issue_attachments( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueListIssueAttachments<'_>, Vec<Attachment>>
List issue’s attachments
owner: owner of the reporepo: name of the repoindex: index of the issue
Sourcepub fn issue_create_issue_attachment(
&self,
owner: &str,
repo: &str,
index: i64,
attachment: &[u8],
query: IssueCreateIssueAttachmentQuery,
) -> Request<'_, IssueCreateIssueAttachment<'_>, Attachment>
pub fn issue_create_issue_attachment( &self, owner: &str, repo: &str, index: i64, attachment: &[u8], query: IssueCreateIssueAttachmentQuery, ) -> Request<'_, IssueCreateIssueAttachment<'_>, Attachment>
Create an issue attachment
owner: owner of the reporepo: name of the repoindex: index of the issueattachment: attachment to upload
Sourcepub fn issue_get_issue_attachment(
&self,
owner: &str,
repo: &str,
index: i64,
attachment_id: i64,
) -> Request<'_, IssueGetIssueAttachment<'_>, Attachment>
pub fn issue_get_issue_attachment( &self, owner: &str, repo: &str, index: i64, attachment_id: i64, ) -> Request<'_, IssueGetIssueAttachment<'_>, Attachment>
Get an issue attachment
owner: owner of the reporepo: name of the repoindex: index of the issueattachment_id: id of the attachment to get
Sourcepub fn issue_delete_issue_attachment(
&self,
owner: &str,
repo: &str,
index: i64,
attachment_id: i64,
) -> Request<'_, IssueDeleteIssueAttachment<'_>, ()>
pub fn issue_delete_issue_attachment( &self, owner: &str, repo: &str, index: i64, attachment_id: i64, ) -> Request<'_, IssueDeleteIssueAttachment<'_>, ()>
Delete an issue attachment
owner: owner of the reporepo: name of the repoindex: index of the issueattachment_id: id of the attachment to delete
Sourcepub fn issue_edit_issue_attachment(
&self,
owner: &str,
repo: &str,
index: i64,
attachment_id: i64,
body: EditAttachmentOptions,
) -> Request<'_, IssueEditIssueAttachment<'_>, Attachment>
pub fn issue_edit_issue_attachment( &self, owner: &str, repo: &str, index: i64, attachment_id: i64, body: EditAttachmentOptions, ) -> Request<'_, IssueEditIssueAttachment<'_>, Attachment>
Edit an issue attachment
owner: owner of the reporepo: name of the repoindex: index of the issueattachment_id: id of the attachment to editbody: SeeEditAttachmentOptions
Sourcepub fn issue_list_blocks(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueListBlocks<'_>, Vec<Issue>>
pub fn issue_list_blocks( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueListBlocks<'_>, Vec<Issue>>
List issues that are blocked by this issue
owner: owner of the reporepo: name of the repoindex: index of the issue
Sourcepub fn issue_create_issue_blocking(
&self,
owner: &str,
repo: &str,
index: i64,
body: IssueMeta,
) -> Request<'_, IssueCreateIssueBlocking<'_>, Issue>
pub fn issue_create_issue_blocking( &self, owner: &str, repo: &str, index: i64, body: IssueMeta, ) -> Request<'_, IssueCreateIssueBlocking<'_>, Issue>
Block the issue given in the body by the issue in path
owner: owner of the reporepo: name of the repoindex: index of the issuebody: SeeIssueMeta
Sourcepub fn issue_remove_issue_blocking(
&self,
owner: &str,
repo: &str,
index: i64,
body: IssueMeta,
) -> Request<'_, IssueRemoveIssueBlocking<'_>, Issue>
pub fn issue_remove_issue_blocking( &self, owner: &str, repo: &str, index: i64, body: IssueMeta, ) -> Request<'_, IssueRemoveIssueBlocking<'_>, Issue>
Unblock the issue given in the body by the issue in path
owner: owner of the reporepo: name of the repoindex: index of the issuebody: SeeIssueMeta
Sourcepub fn issue_get_comments(
&self,
owner: &str,
repo: &str,
index: i64,
query: IssueGetCommentsQuery,
) -> Request<'_, IssueGetComments<'_>, (CommentListHeaders, Vec<Comment>)>
pub fn issue_get_comments( &self, owner: &str, repo: &str, index: i64, query: IssueGetCommentsQuery, ) -> Request<'_, IssueGetComments<'_>, (CommentListHeaders, Vec<Comment>)>
List all comments on an issue
owner: owner of the reporepo: name of the repoindex: index of the issue
Sourcepub fn issue_create_comment(
&self,
owner: &str,
repo: &str,
index: i64,
body: CreateIssueCommentOption,
) -> Request<'_, IssueCreateComment<'_>, Comment>
pub fn issue_create_comment( &self, owner: &str, repo: &str, index: i64, body: CreateIssueCommentOption, ) -> Request<'_, IssueCreateComment<'_>, Comment>
Add a comment to an issue
owner: owner of the reporepo: name of the repoindex: index of the issuebody: SeeCreateIssueCommentOption
Sourcepub fn issue_delete_comment_deprecated(
&self,
owner: &str,
repo: &str,
index: u32,
id: i64,
) -> Request<'_, IssueDeleteCommentDeprecated<'_>, ()>
pub fn issue_delete_comment_deprecated( &self, owner: &str, repo: &str, index: u32, id: i64, ) -> Request<'_, IssueDeleteCommentDeprecated<'_>, ()>
Delete a comment
owner: owner of the reporepo: name of the repoindex: this parameter is ignoredid: id of comment to delete
Sourcepub fn issue_edit_comment_deprecated(
&self,
owner: &str,
repo: &str,
index: u32,
id: i64,
body: EditIssueCommentOption,
) -> Request<'_, IssueEditCommentDeprecated<'_>, Option<Comment>>
pub fn issue_edit_comment_deprecated( &self, owner: &str, repo: &str, index: u32, id: i64, body: EditIssueCommentOption, ) -> Request<'_, IssueEditCommentDeprecated<'_>, Option<Comment>>
Edit a comment
owner: owner of the reporepo: name of the repoindex: this parameter is ignoredid: id of the comment to editbody: SeeEditIssueCommentOption
Sourcepub fn issue_edit_issue_deadline(
&self,
owner: &str,
repo: &str,
index: i64,
body: EditDeadlineOption,
) -> Request<'_, IssueEditIssueDeadline<'_>, IssueDeadline>
pub fn issue_edit_issue_deadline( &self, owner: &str, repo: &str, index: i64, body: EditDeadlineOption, ) -> Request<'_, IssueEditIssueDeadline<'_>, IssueDeadline>
Set an issue deadline. If set to null, the deadline is deleted. If using deadline only the date will be taken into account, and time of day ignored.
owner: owner of the reporepo: name of the repoindex: index of the issue to create or update a deadline onbody: SeeEditDeadlineOption
Sourcepub fn issue_list_issue_dependencies(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueListIssueDependencies<'_>, Vec<Issue>>
pub fn issue_list_issue_dependencies( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueListIssueDependencies<'_>, Vec<Issue>>
List an issue’s dependencies, i.e all issues that block this issue.
owner: owner of the reporepo: name of the repoindex: index of the issue
Sourcepub fn issue_create_issue_dependencies(
&self,
owner: &str,
repo: &str,
index: i64,
body: IssueMeta,
) -> Request<'_, IssueCreateIssueDependencies<'_>, Issue>
pub fn issue_create_issue_dependencies( &self, owner: &str, repo: &str, index: i64, body: IssueMeta, ) -> Request<'_, IssueCreateIssueDependencies<'_>, Issue>
Make the issue in the url depend on the issue in the form.
owner: owner of the reporepo: name of the repoindex: index of the issuebody: SeeIssueMeta
Sourcepub fn issue_remove_issue_dependencies(
&self,
owner: &str,
repo: &str,
index: i64,
body: IssueMeta,
) -> Request<'_, IssueRemoveIssueDependencies<'_>, Issue>
pub fn issue_remove_issue_dependencies( &self, owner: &str, repo: &str, index: i64, body: IssueMeta, ) -> Request<'_, IssueRemoveIssueDependencies<'_>, Issue>
Remove an issue dependency
owner: owner of the reporepo: name of the repoindex: index of the issuebody: SeeIssueMeta
Sourcepub fn issue_get_labels(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueGetLabels<'_>, Vec<Label>>
pub fn issue_get_labels( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueGetLabels<'_>, Vec<Label>>
Get an issue’s labels
owner: owner of the reporepo: name of the repoindex: index of the issue
Sourcepub fn issue_replace_labels(
&self,
owner: &str,
repo: &str,
index: i64,
body: IssueLabelsOption,
) -> Request<'_, IssueReplaceLabels<'_>, Vec<Label>>
pub fn issue_replace_labels( &self, owner: &str, repo: &str, index: i64, body: IssueLabelsOption, ) -> Request<'_, IssueReplaceLabels<'_>, Vec<Label>>
Replace an issue’s labels
owner: owner of the reporepo: name of the repoindex: index of the issuebody: SeeIssueLabelsOption
Sourcepub fn issue_add_label(
&self,
owner: &str,
repo: &str,
index: i64,
body: IssueLabelsOption,
) -> Request<'_, IssueAddLabel<'_>, Vec<Label>>
pub fn issue_add_label( &self, owner: &str, repo: &str, index: i64, body: IssueLabelsOption, ) -> Request<'_, IssueAddLabel<'_>, Vec<Label>>
Add a label to an issue
owner: owner of the reporepo: name of the repoindex: index of the issuebody: SeeIssueLabelsOption
Sourcepub fn issue_clear_labels(
&self,
owner: &str,
repo: &str,
index: i64,
body: DeleteLabelsOption,
) -> Request<'_, IssueClearLabels<'_>, ()>
pub fn issue_clear_labels( &self, owner: &str, repo: &str, index: i64, body: DeleteLabelsOption, ) -> Request<'_, IssueClearLabels<'_>, ()>
Remove all labels from an issue
owner: owner of the reporepo: name of the repoindex: index of the issuebody: SeeDeleteLabelsOption
Sourcepub fn issue_remove_label(
&self,
owner: &str,
repo: &str,
index: i64,
identifier: &str,
body: DeleteLabelsOption,
) -> Request<'_, IssueRemoveLabel<'_>, ()>
pub fn issue_remove_label( &self, owner: &str, repo: &str, index: i64, identifier: &str, body: DeleteLabelsOption, ) -> Request<'_, IssueRemoveLabel<'_>, ()>
Remove a label from an issue
owner: owner of the reporepo: name of the repoindex: index of the issueidentifier: name or id of the label to removebody: SeeDeleteLabelsOption
Sourcepub fn pin_issue(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, PinIssue<'_>, ()>
pub fn pin_issue( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, PinIssue<'_>, ()>
Pin an Issue
owner: owner of the reporepo: name of the repoindex: index of issue to pin
Sourcepub fn unpin_issue(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, UnpinIssue<'_>, ()>
pub fn unpin_issue( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, UnpinIssue<'_>, ()>
Unpin an Issue
owner: owner of the reporepo: name of the repoindex: index of issue to unpin
Sourcepub fn move_issue_pin(
&self,
owner: &str,
repo: &str,
index: i64,
position: i64,
) -> Request<'_, MoveIssuePin<'_>, ()>
pub fn move_issue_pin( &self, owner: &str, repo: &str, index: i64, position: i64, ) -> Request<'_, MoveIssuePin<'_>, ()>
Moves the Pin to the given Position
owner: owner of the reporepo: name of the repoindex: index of issueposition: the new position
Sourcepub fn issue_get_issue_reactions(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueGetIssueReactions<'_>, (ReactionListHeaders, Vec<Reaction>)>
pub fn issue_get_issue_reactions( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueGetIssueReactions<'_>, (ReactionListHeaders, Vec<Reaction>)>
Get a list reactions of an issue
owner: owner of the reporepo: name of the repoindex: index of the issue
Sourcepub fn issue_post_issue_reaction(
&self,
owner: &str,
repo: &str,
index: i64,
content: EditReactionOption,
) -> Request<'_, IssuePostIssueReaction<'_>, Reaction>
pub fn issue_post_issue_reaction( &self, owner: &str, repo: &str, index: i64, content: EditReactionOption, ) -> Request<'_, IssuePostIssueReaction<'_>, Reaction>
Add a reaction to an issue
owner: owner of the reporepo: name of the repoindex: index of the issuecontent: SeeEditReactionOption
Sourcepub fn issue_delete_issue_reaction(
&self,
owner: &str,
repo: &str,
index: i64,
content: EditReactionOption,
) -> Request<'_, IssueDeleteIssueReaction<'_>, ()>
pub fn issue_delete_issue_reaction( &self, owner: &str, repo: &str, index: i64, content: EditReactionOption, ) -> Request<'_, IssueDeleteIssueReaction<'_>, ()>
Remove a reaction from an issue
owner: owner of the reporepo: name of the repoindex: index of the issuecontent: SeeEditReactionOption
Sourcepub fn issue_delete_stop_watch(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueDeleteStopWatch<'_>, ()>
pub fn issue_delete_stop_watch( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueDeleteStopWatch<'_>, ()>
Delete an issue’s existing stopwatch.
owner: owner of the reporepo: name of the repoindex: index of the issue to stop the stopwatch on
Sourcepub fn issue_start_stop_watch(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueStartStopWatch<'_>, ()>
pub fn issue_start_stop_watch( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueStartStopWatch<'_>, ()>
Start stopwatch on an issue.
owner: owner of the reporepo: name of the repoindex: index of the issue to create the stopwatch on
Sourcepub fn issue_stop_stop_watch(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueStopStopWatch<'_>, ()>
pub fn issue_stop_stop_watch( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueStopStopWatch<'_>, ()>
Stop an issue’s existing stopwatch.
owner: owner of the reporepo: name of the repoindex: index of the issue to stop the stopwatch on
Sourcepub fn issue_subscriptions(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueSubscriptions<'_>, (UserListHeaders, Vec<User>)>
pub fn issue_subscriptions( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueSubscriptions<'_>, (UserListHeaders, Vec<User>)>
Get users who subscribed on an issue.
owner: owner of the reporepo: name of the repoindex: index of the issue
Sourcepub fn issue_check_subscription(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueCheckSubscription<'_>, WatchInfo>
pub fn issue_check_subscription( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueCheckSubscription<'_>, WatchInfo>
Check if user is subscribed to an issue
owner: owner of the reporepo: name of the repoindex: index of the issue
Sourcepub fn issue_add_subscription(
&self,
owner: &str,
repo: &str,
index: i64,
user: &str,
) -> Request<'_, IssueAddSubscription<'_>, ()>
pub fn issue_add_subscription( &self, owner: &str, repo: &str, index: i64, user: &str, ) -> Request<'_, IssueAddSubscription<'_>, ()>
Subscribe user to issue
owner: owner of the reporepo: name of the repoindex: index of the issueuser: user to subscribe
Sourcepub fn issue_delete_subscription(
&self,
owner: &str,
repo: &str,
index: i64,
user: &str,
) -> Request<'_, IssueDeleteSubscription<'_>, ()>
pub fn issue_delete_subscription( &self, owner: &str, repo: &str, index: i64, user: &str, ) -> Request<'_, IssueDeleteSubscription<'_>, ()>
Unsubscribe user from issue
owner: owner of the reporepo: name of the repoindex: index of the issueuser: user witch unsubscribe
Sourcepub fn issue_get_comments_and_timeline(
&self,
owner: &str,
repo: &str,
index: i64,
query: IssueGetCommentsAndTimelineQuery,
) -> Request<'_, IssueGetCommentsAndTimeline<'_>, (TimelineListHeaders, Vec<TimelineComment>)>
pub fn issue_get_comments_and_timeline( &self, owner: &str, repo: &str, index: i64, query: IssueGetCommentsAndTimelineQuery, ) -> Request<'_, IssueGetCommentsAndTimeline<'_>, (TimelineListHeaders, Vec<TimelineComment>)>
List all comments and events on an issue
owner: owner of the reporepo: name of the repoindex: index of the issue
Sourcepub fn issue_tracked_times(
&self,
owner: &str,
repo: &str,
index: i64,
query: IssueTrackedTimesQuery,
) -> Request<'_, IssueTrackedTimes<'_>, (TrackedTimeListHeaders, Vec<TrackedTime>)>
pub fn issue_tracked_times( &self, owner: &str, repo: &str, index: i64, query: IssueTrackedTimesQuery, ) -> Request<'_, IssueTrackedTimes<'_>, (TrackedTimeListHeaders, Vec<TrackedTime>)>
List an issue’s tracked times
owner: owner of the reporepo: name of the repoindex: index of the issue
Sourcepub fn issue_add_time(
&self,
owner: &str,
repo: &str,
index: i64,
body: AddTimeOption,
) -> Request<'_, IssueAddTime<'_>, TrackedTime>
pub fn issue_add_time( &self, owner: &str, repo: &str, index: i64, body: AddTimeOption, ) -> Request<'_, IssueAddTime<'_>, TrackedTime>
Add tracked time to a issue
owner: owner of the reporepo: name of the repoindex: index of the issuebody: SeeAddTimeOption
Sourcepub fn issue_reset_time(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, IssueResetTime<'_>, ()>
pub fn issue_reset_time( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, IssueResetTime<'_>, ()>
Reset a tracked time of an issue
owner: owner of the reporepo: name of the repoindex: index of the issue to add tracked time to
Sourcepub fn issue_delete_time(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
) -> Request<'_, IssueDeleteTime<'_>, ()>
pub fn issue_delete_time( &self, owner: &str, repo: &str, index: i64, id: i64, ) -> Request<'_, IssueDeleteTime<'_>, ()>
Delete specific tracked time
owner: owner of the reporepo: name of the repoindex: index of the issueid: id of time to delete
Sourcepub fn repo_list_keys(
&self,
owner: &str,
repo: &str,
query: RepoListKeysQuery,
) -> Request<'_, RepoListKeys<'_>, (DeployKeyListHeaders, Vec<DeployKey>)>
pub fn repo_list_keys( &self, owner: &str, repo: &str, query: RepoListKeysQuery, ) -> Request<'_, RepoListKeys<'_>, (DeployKeyListHeaders, Vec<DeployKey>)>
List a repository’s keys
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_create_key(
&self,
owner: &str,
repo: &str,
body: CreateKeyOption,
) -> Request<'_, RepoCreateKey<'_>, DeployKey>
pub fn repo_create_key( &self, owner: &str, repo: &str, body: CreateKeyOption, ) -> Request<'_, RepoCreateKey<'_>, DeployKey>
Add a key to a repository
owner: owner of the reporepo: name of the repobody: SeeCreateKeyOption
Sourcepub fn repo_get_key(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, RepoGetKey<'_>, DeployKey>
pub fn repo_get_key( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, RepoGetKey<'_>, DeployKey>
Get a repository’s key by id
owner: owner of the reporepo: name of the repoid: id of the key to get
Sourcepub fn repo_delete_key(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, RepoDeleteKey<'_>, ()>
pub fn repo_delete_key( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, RepoDeleteKey<'_>, ()>
Delete a key from a repository
owner: owner of the reporepo: name of the repoid: id of the key to delete
Sourcepub fn issue_list_labels(
&self,
owner: &str,
repo: &str,
query: IssueListLabelsQuery,
) -> Request<'_, IssueListLabels<'_>, (LabelListHeaders, Vec<Label>)>
pub fn issue_list_labels( &self, owner: &str, repo: &str, query: IssueListLabelsQuery, ) -> Request<'_, IssueListLabels<'_>, (LabelListHeaders, Vec<Label>)>
Get all of a repository’s labels
owner: owner of the reporepo: name of the repo
Sourcepub fn issue_create_label(
&self,
owner: &str,
repo: &str,
body: CreateLabelOption,
) -> Request<'_, IssueCreateLabel<'_>, Label>
pub fn issue_create_label( &self, owner: &str, repo: &str, body: CreateLabelOption, ) -> Request<'_, IssueCreateLabel<'_>, Label>
Create a label
owner: owner of the reporepo: name of the repobody: SeeCreateLabelOption
Sourcepub fn issue_get_label(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, IssueGetLabel<'_>, Label>
pub fn issue_get_label( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, IssueGetLabel<'_>, Label>
Get a single label
owner: owner of the reporepo: name of the repoid: id of the label to get
Sourcepub fn issue_delete_label(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, IssueDeleteLabel<'_>, ()>
pub fn issue_delete_label( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, IssueDeleteLabel<'_>, ()>
Delete a label
owner: owner of the reporepo: name of the repoid: id of the label to delete
Sourcepub fn issue_edit_label(
&self,
owner: &str,
repo: &str,
id: i64,
body: EditLabelOption,
) -> Request<'_, IssueEditLabel<'_>, Label>
pub fn issue_edit_label( &self, owner: &str, repo: &str, id: i64, body: EditLabelOption, ) -> Request<'_, IssueEditLabel<'_>, Label>
Update a label
owner: owner of the reporepo: name of the repoid: id of the label to editbody: SeeEditLabelOption
Sourcepub fn repo_get_languages(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoGetLanguages<'_>, BTreeMap<String, i64>>
pub fn repo_get_languages( &self, owner: &str, repo: &str, ) -> Request<'_, RepoGetLanguages<'_>, BTreeMap<String, i64>>
Get languages and number of bytes of code written
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_get_raw_file_or_lfs(
&self,
owner: &str,
repo: &str,
filepath: &str,
query: RepoGetRawFileOrLfsQuery,
) -> Request<'_, RepoGetRawFileOrLfs<'_>, Bytes>
pub fn repo_get_raw_file_or_lfs( &self, owner: &str, repo: &str, filepath: &str, query: RepoGetRawFileOrLfsQuery, ) -> Request<'_, RepoGetRawFileOrLfs<'_>, Bytes>
Get a file or it’s LFS object from a repository
owner: owner of the reporepo: name of the repofilepath: filepath of the file to get
Sourcepub fn issue_get_milestones_list(
&self,
owner: &str,
repo: &str,
query: IssueGetMilestonesListQuery,
) -> Request<'_, IssueGetMilestonesList<'_>, (MilestoneListHeaders, Vec<Milestone>)>
pub fn issue_get_milestones_list( &self, owner: &str, repo: &str, query: IssueGetMilestonesListQuery, ) -> Request<'_, IssueGetMilestonesList<'_>, (MilestoneListHeaders, Vec<Milestone>)>
Get all of a repository’s opened milestones
owner: owner of the reporepo: name of the repo
Sourcepub fn issue_create_milestone(
&self,
owner: &str,
repo: &str,
body: CreateMilestoneOption,
) -> Request<'_, IssueCreateMilestone<'_>, Milestone>
pub fn issue_create_milestone( &self, owner: &str, repo: &str, body: CreateMilestoneOption, ) -> Request<'_, IssueCreateMilestone<'_>, Milestone>
Create a milestone
owner: owner of the reporepo: name of the repobody: SeeCreateMilestoneOption
Sourcepub fn issue_get_milestone(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, IssueGetMilestone<'_>, Milestone>
pub fn issue_get_milestone( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, IssueGetMilestone<'_>, Milestone>
Get a milestone
owner: owner of the reporepo: name of the repoid: the milestone to get, identified by ID and if not available by name
Sourcepub fn issue_delete_milestone(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, IssueDeleteMilestone<'_>, ()>
pub fn issue_delete_milestone( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, IssueDeleteMilestone<'_>, ()>
Delete a milestone
owner: owner of the reporepo: name of the repoid: the milestone to delete, identified by ID and if not available by name
Sourcepub fn issue_edit_milestone(
&self,
owner: &str,
repo: &str,
id: i64,
body: EditMilestoneOption,
) -> Request<'_, IssueEditMilestone<'_>, Milestone>
pub fn issue_edit_milestone( &self, owner: &str, repo: &str, id: i64, body: EditMilestoneOption, ) -> Request<'_, IssueEditMilestone<'_>, Milestone>
Update a milestone
owner: owner of the reporepo: name of the repoid: the milestone to edit, identified by ID and if not available by namebody: SeeEditMilestoneOption
Sourcepub fn repo_mirror_sync(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoMirrorSync<'_>, ()>
pub fn repo_mirror_sync( &self, owner: &str, repo: &str, ) -> Request<'_, RepoMirrorSync<'_>, ()>
Sync a mirrored repository
owner: owner of the repo to syncrepo: name of the repo to sync
Sourcepub fn repo_new_pin_allowed(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoNewPinAllowed<'_>, NewIssuePinsAllowed>
pub fn repo_new_pin_allowed( &self, owner: &str, repo: &str, ) -> Request<'_, RepoNewPinAllowed<'_>, NewIssuePinsAllowed>
Returns if new Issue Pins are allowed
owner: owner of the reporepo: name of the repo
Sourcepub fn notify_get_repo_list(
&self,
owner: &str,
repo: &str,
query: NotifyGetRepoListQuery,
) -> Request<'_, NotifyGetRepoList<'_>, (NotificationThreadListHeaders, Vec<NotificationThread>)>
pub fn notify_get_repo_list( &self, owner: &str, repo: &str, query: NotifyGetRepoListQuery, ) -> Request<'_, NotifyGetRepoList<'_>, (NotificationThreadListHeaders, Vec<NotificationThread>)>
List users’s notification threads on a specific repo
owner: owner of the reporepo: name of the repo
Sourcepub fn notify_read_repo_list(
&self,
owner: &str,
repo: &str,
query: NotifyReadRepoListQuery,
) -> Request<'_, NotifyReadRepoList<'_>, Vec<NotificationThread>>
pub fn notify_read_repo_list( &self, owner: &str, repo: &str, query: NotifyReadRepoListQuery, ) -> Request<'_, NotifyReadRepoList<'_>, Vec<NotificationThread>>
Mark notification threads as read, pinned or unread on a specific repo
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_list_pull_requests(
&self,
owner: &str,
repo: &str,
query: RepoListPullRequestsQuery,
) -> Request<'_, RepoListPullRequests<'_>, (PullRequestListHeaders, Vec<PullRequest>)>
pub fn repo_list_pull_requests( &self, owner: &str, repo: &str, query: RepoListPullRequestsQuery, ) -> Request<'_, RepoListPullRequests<'_>, (PullRequestListHeaders, Vec<PullRequest>)>
List a repo’s pull requests. If a pull request is selected but fails to be retrieved for any reason, it will be a null value in the list of results.
owner: Owner of the reporepo: Name of the repo
Sourcepub fn repo_create_pull_request(
&self,
owner: &str,
repo: &str,
body: CreatePullRequestOption,
) -> Request<'_, RepoCreatePullRequest<'_>, PullRequest>
pub fn repo_create_pull_request( &self, owner: &str, repo: &str, body: CreatePullRequestOption, ) -> Request<'_, RepoCreatePullRequest<'_>, PullRequest>
Create a pull request
owner: owner of the reporepo: name of the repobody: SeeCreatePullRequestOption
Sourcepub fn repo_list_pinned_pull_requests(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListPinnedPullRequests<'_>, (PullRequestListHeaders, Vec<PullRequest>)>
pub fn repo_list_pinned_pull_requests( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListPinnedPullRequests<'_>, (PullRequestListHeaders, Vec<PullRequest>)>
List a repo’s pinned pull requests
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_get_pull_request_by_base_head(
&self,
owner: &str,
repo: &str,
base: &str,
head: &str,
) -> Request<'_, RepoGetPullRequestByBaseHead<'_>, PullRequest>
pub fn repo_get_pull_request_by_base_head( &self, owner: &str, repo: &str, base: &str, head: &str, ) -> Request<'_, RepoGetPullRequestByBaseHead<'_>, PullRequest>
Get a pull request by base and head
owner: owner of the reporepo: name of the repobase: base of the pull request to gethead: head of the pull request to get
Sourcepub fn repo_get_pull_request(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, RepoGetPullRequest<'_>, PullRequest>
pub fn repo_get_pull_request( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, RepoGetPullRequest<'_>, PullRequest>
Get a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull request to get
Sourcepub fn repo_edit_pull_request(
&self,
owner: &str,
repo: &str,
index: i64,
body: EditPullRequestOption,
) -> Request<'_, RepoEditPullRequest<'_>, PullRequest>
pub fn repo_edit_pull_request( &self, owner: &str, repo: &str, index: i64, body: EditPullRequestOption, ) -> Request<'_, RepoEditPullRequest<'_>, PullRequest>
Update a pull request. If using deadline only the date will be taken into account, and time of day ignored.
owner: owner of the reporepo: name of the repoindex: index of the pull request to editbody: SeeEditPullRequestOption
Sourcepub fn repo_download_pull_diff_or_patch(
&self,
owner: &str,
repo: &str,
index: i64,
diff_type: &str,
query: RepoDownloadPullDiffOrPatchQuery,
) -> Request<'_, RepoDownloadPullDiffOrPatch<'_>, String>
pub fn repo_download_pull_diff_or_patch( &self, owner: &str, repo: &str, index: i64, diff_type: &str, query: RepoDownloadPullDiffOrPatchQuery, ) -> Request<'_, RepoDownloadPullDiffOrPatch<'_>, String>
Get a pull request diff or patch
owner: owner of the reporepo: name of the repoindex: index of the pull request to getdiffType: whether the output is diff or patch
Sourcepub fn repo_get_pull_request_commits(
&self,
owner: &str,
repo: &str,
index: i64,
query: RepoGetPullRequestCommitsQuery,
) -> Request<'_, RepoGetPullRequestCommits<'_>, (CommitListHeaders, Vec<Commit>)>
pub fn repo_get_pull_request_commits( &self, owner: &str, repo: &str, index: i64, query: RepoGetPullRequestCommitsQuery, ) -> Request<'_, RepoGetPullRequestCommits<'_>, (CommitListHeaders, Vec<Commit>)>
Get commits for a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull request to get
Sourcepub fn repo_get_pull_request_files(
&self,
owner: &str,
repo: &str,
index: i64,
query: RepoGetPullRequestFilesQuery,
) -> Request<'_, RepoGetPullRequestFiles<'_>, (ChangedFileListWithPaginationHeaders, Vec<ChangedFile>)>
pub fn repo_get_pull_request_files( &self, owner: &str, repo: &str, index: i64, query: RepoGetPullRequestFilesQuery, ) -> Request<'_, RepoGetPullRequestFiles<'_>, (ChangedFileListWithPaginationHeaders, Vec<ChangedFile>)>
Get changed files for a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull request to get
Sourcepub fn repo_pull_request_is_merged(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, RepoPullRequestIsMerged<'_>, ()>
pub fn repo_pull_request_is_merged( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, RepoPullRequestIsMerged<'_>, ()>
Check if a pull request has been merged
owner: owner of the reporepo: name of the repoindex: index of the pull request
Sourcepub fn repo_merge_pull_request(
&self,
owner: &str,
repo: &str,
index: i64,
body: MergePullRequestOption,
) -> Request<'_, RepoMergePullRequest<'_>, ()>
pub fn repo_merge_pull_request( &self, owner: &str, repo: &str, index: i64, body: MergePullRequestOption, ) -> Request<'_, RepoMergePullRequest<'_>, ()>
Merge a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull request to mergebody: SeeMergePullRequestOption
Sourcepub fn repo_cancel_scheduled_auto_merge(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, RepoCancelScheduledAutoMerge<'_>, ()>
pub fn repo_cancel_scheduled_auto_merge( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, RepoCancelScheduledAutoMerge<'_>, ()>
Cancel the scheduled auto merge for the given pull request
owner: owner of the reporepo: name of the repoindex: index of the pull request to merge
Sourcepub fn repo_create_pull_review_requests(
&self,
owner: &str,
repo: &str,
index: i64,
body: PullReviewRequestOptions,
) -> Request<'_, RepoCreatePullReviewRequests<'_>, Vec<PullReview>>
pub fn repo_create_pull_review_requests( &self, owner: &str, repo: &str, index: i64, body: PullReviewRequestOptions, ) -> Request<'_, RepoCreatePullReviewRequests<'_>, Vec<PullReview>>
Create review requests for a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull requestbody: SeePullReviewRequestOptions
Sourcepub fn repo_delete_pull_review_requests(
&self,
owner: &str,
repo: &str,
index: i64,
body: PullReviewRequestOptions,
) -> Request<'_, RepoDeletePullReviewRequests<'_>, ()>
pub fn repo_delete_pull_review_requests( &self, owner: &str, repo: &str, index: i64, body: PullReviewRequestOptions, ) -> Request<'_, RepoDeletePullReviewRequests<'_>, ()>
Cancel review requests for a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull requestbody: SeePullReviewRequestOptions
Sourcepub fn repo_list_pull_reviews(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Request<'_, RepoListPullReviews<'_>, (PullReviewListHeaders, Vec<PullReview>)>
pub fn repo_list_pull_reviews( &self, owner: &str, repo: &str, index: i64, ) -> Request<'_, RepoListPullReviews<'_>, (PullReviewListHeaders, Vec<PullReview>)>
List all reviews for a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull request
Sourcepub fn repo_create_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
body: CreatePullReviewOptions,
) -> Request<'_, RepoCreatePullReview<'_>, PullReview>
pub fn repo_create_pull_review( &self, owner: &str, repo: &str, index: i64, body: CreatePullReviewOptions, ) -> Request<'_, RepoCreatePullReview<'_>, PullReview>
Create a review to an pull request
owner: owner of the reporepo: name of the repoindex: index of the pull requestbody: SeeCreatePullReviewOptions
Sourcepub fn repo_get_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
) -> Request<'_, RepoGetPullReview<'_>, PullReview>
pub fn repo_get_pull_review( &self, owner: &str, repo: &str, index: i64, id: i64, ) -> Request<'_, RepoGetPullReview<'_>, PullReview>
Get a specific review for a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull requestid: id of the review
Sourcepub fn repo_submit_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
body: SubmitPullReviewOptions,
) -> Request<'_, RepoSubmitPullReview<'_>, PullReview>
pub fn repo_submit_pull_review( &self, owner: &str, repo: &str, index: i64, id: i64, body: SubmitPullReviewOptions, ) -> Request<'_, RepoSubmitPullReview<'_>, PullReview>
Submit a pending review to an pull request
owner: owner of the reporepo: name of the repoindex: index of the pull requestid: id of the reviewbody: SeeSubmitPullReviewOptions
Sourcepub fn repo_delete_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
) -> Request<'_, RepoDeletePullReview<'_>, ()>
pub fn repo_delete_pull_review( &self, owner: &str, repo: &str, index: i64, id: i64, ) -> Request<'_, RepoDeletePullReview<'_>, ()>
Delete a specific review from a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull requestid: id of the review
Sourcepub fn repo_get_pull_review_comments(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
) -> Request<'_, RepoGetPullReviewComments<'_>, Vec<PullReviewComment>>
pub fn repo_get_pull_review_comments( &self, owner: &str, repo: &str, index: i64, id: i64, ) -> Request<'_, RepoGetPullReviewComments<'_>, Vec<PullReviewComment>>
Get a specific review for a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull requestid: id of the review
Sourcepub fn repo_create_pull_review_comment(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
body: Value,
) -> Request<'_, RepoCreatePullReviewComment<'_>, PullReviewComment>
pub fn repo_create_pull_review_comment( &self, owner: &str, repo: &str, index: i64, id: i64, body: Value, ) -> Request<'_, RepoCreatePullReviewComment<'_>, PullReviewComment>
Add a new comment to a pull request review
owner: owner of the reporepo: name of the repoindex: index of the pull requestid: id of the reviewbody: Seeserde_json::Value
Sourcepub fn repo_get_pull_review_comment(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
comment: i64,
) -> Request<'_, RepoGetPullReviewComment<'_>, PullReviewComment>
pub fn repo_get_pull_review_comment( &self, owner: &str, repo: &str, index: i64, id: i64, comment: i64, ) -> Request<'_, RepoGetPullReviewComment<'_>, PullReviewComment>
Get a pull review comment
owner: owner of the reporepo: name of the repoindex: index of the pull requestid: id of the reviewcomment: id of the comment
Sourcepub fn repo_delete_pull_review_comment(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
comment: i64,
) -> Request<'_, RepoDeletePullReviewComment<'_>, ()>
pub fn repo_delete_pull_review_comment( &self, owner: &str, repo: &str, index: i64, id: i64, comment: i64, ) -> Request<'_, RepoDeletePullReviewComment<'_>, ()>
Delete a pull review comment
owner: owner of the reporepo: name of the repoindex: index of the pull requestid: id of the reviewcomment: id of the comment
Sourcepub fn repo_dismiss_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
body: DismissPullReviewOptions,
) -> Request<'_, RepoDismissPullReview<'_>, PullReview>
pub fn repo_dismiss_pull_review( &self, owner: &str, repo: &str, index: i64, id: i64, body: DismissPullReviewOptions, ) -> Request<'_, RepoDismissPullReview<'_>, PullReview>
Dismiss a review for a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull requestid: id of the reviewbody: SeeDismissPullReviewOptions
Sourcepub fn repo_un_dismiss_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
) -> Request<'_, RepoUnDismissPullReview<'_>, PullReview>
pub fn repo_un_dismiss_pull_review( &self, owner: &str, repo: &str, index: i64, id: i64, ) -> Request<'_, RepoUnDismissPullReview<'_>, PullReview>
Cancel to dismiss a review for a pull request
owner: owner of the reporepo: name of the repoindex: index of the pull requestid: id of the review
Sourcepub fn repo_update_pull_request(
&self,
owner: &str,
repo: &str,
index: i64,
query: RepoUpdatePullRequestQuery,
) -> Request<'_, RepoUpdatePullRequest<'_>, ()>
pub fn repo_update_pull_request( &self, owner: &str, repo: &str, index: i64, query: RepoUpdatePullRequestQuery, ) -> Request<'_, RepoUpdatePullRequest<'_>, ()>
Merge PR’s baseBranch into headBranch
owner: owner of the reporepo: name of the repoindex: index of the pull request to get
Sourcepub fn repo_list_push_mirrors(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListPushMirrors<'_>, (PushMirrorListHeaders, Vec<PushMirror>)>
pub fn repo_list_push_mirrors( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListPushMirrors<'_>, (PushMirrorListHeaders, Vec<PushMirror>)>
Get all push mirrors of the repository
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_add_push_mirror(
&self,
owner: &str,
repo: &str,
body: CreatePushMirrorOption,
) -> Request<'_, RepoAddPushMirror<'_>, PushMirror>
pub fn repo_add_push_mirror( &self, owner: &str, repo: &str, body: CreatePushMirrorOption, ) -> Request<'_, RepoAddPushMirror<'_>, PushMirror>
Set up a new push mirror in a repository
owner: owner of the reporepo: name of the repobody: SeeCreatePushMirrorOption
Sourcepub fn repo_push_mirror_sync(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoPushMirrorSync<'_>, ()>
pub fn repo_push_mirror_sync( &self, owner: &str, repo: &str, ) -> Request<'_, RepoPushMirrorSync<'_>, ()>
Sync all push mirrored repository
owner: owner of the repo to syncrepo: name of the repo to sync
Sourcepub fn repo_get_push_mirror_by_remote_name(
&self,
owner: &str,
repo: &str,
name: &str,
) -> Request<'_, RepoGetPushMirrorByRemoteName<'_>, PushMirror>
pub fn repo_get_push_mirror_by_remote_name( &self, owner: &str, repo: &str, name: &str, ) -> Request<'_, RepoGetPushMirrorByRemoteName<'_>, PushMirror>
Get push mirror of the repository by remoteName
owner: owner of the reporepo: name of the reponame: remote name of push mirror
Sourcepub fn repo_delete_push_mirror(
&self,
owner: &str,
repo: &str,
name: &str,
) -> Request<'_, RepoDeletePushMirror<'_>, ()>
pub fn repo_delete_push_mirror( &self, owner: &str, repo: &str, name: &str, ) -> Request<'_, RepoDeletePushMirror<'_>, ()>
Remove a push mirror from a repository by remoteName
owner: owner of the reporepo: name of the reponame: remote name of the pushMirror
Sourcepub fn repo_get_raw_file(
&self,
owner: &str,
repo: &str,
filepath: &str,
query: RepoGetRawFileQuery,
) -> Request<'_, RepoGetRawFile<'_>, Bytes>
pub fn repo_get_raw_file( &self, owner: &str, repo: &str, filepath: &str, query: RepoGetRawFileQuery, ) -> Request<'_, RepoGetRawFile<'_>, Bytes>
Get a file from a repository
owner: owner of the reporepo: name of the repofilepath: filepath of the file to get
Sourcepub fn repo_list_releases(
&self,
owner: &str,
repo: &str,
query: RepoListReleasesQuery,
) -> Request<'_, RepoListReleases<'_>, (ReleaseListHeaders, Vec<Release>)>
pub fn repo_list_releases( &self, owner: &str, repo: &str, query: RepoListReleasesQuery, ) -> Request<'_, RepoListReleases<'_>, (ReleaseListHeaders, Vec<Release>)>
List a repo’s releases
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_create_release(
&self,
owner: &str,
repo: &str,
body: CreateReleaseOption,
) -> Request<'_, RepoCreateRelease<'_>, Release>
pub fn repo_create_release( &self, owner: &str, repo: &str, body: CreateReleaseOption, ) -> Request<'_, RepoCreateRelease<'_>, Release>
Create a release
owner: owner of the reporepo: name of the repobody: SeeCreateReleaseOption
Sourcepub fn repo_get_latest_release(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoGetLatestRelease<'_>, Release>
pub fn repo_get_latest_release( &self, owner: &str, repo: &str, ) -> Request<'_, RepoGetLatestRelease<'_>, Release>
Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_get_release_by_tag(
&self,
owner: &str,
repo: &str,
tag: &str,
) -> Request<'_, RepoGetReleaseByTag<'_>, Release>
pub fn repo_get_release_by_tag( &self, owner: &str, repo: &str, tag: &str, ) -> Request<'_, RepoGetReleaseByTag<'_>, Release>
Get a release by tag name
owner: owner of the reporepo: name of the repotag: tag name of the release to get
Sourcepub fn repo_delete_release_by_tag(
&self,
owner: &str,
repo: &str,
tag: &str,
) -> Request<'_, RepoDeleteReleaseByTag<'_>, ()>
pub fn repo_delete_release_by_tag( &self, owner: &str, repo: &str, tag: &str, ) -> Request<'_, RepoDeleteReleaseByTag<'_>, ()>
Delete a release by tag name
owner: owner of the reporepo: name of the repotag: tag name of the release to delete
Sourcepub fn repo_get_release(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, RepoGetRelease<'_>, Release>
pub fn repo_get_release( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, RepoGetRelease<'_>, Release>
Get a release
owner: owner of the reporepo: name of the repoid: id of the release to get
Sourcepub fn repo_delete_release(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, RepoDeleteRelease<'_>, ()>
pub fn repo_delete_release( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, RepoDeleteRelease<'_>, ()>
Delete a release
owner: owner of the reporepo: name of the repoid: id of the release to delete
Sourcepub fn repo_edit_release(
&self,
owner: &str,
repo: &str,
id: i64,
body: EditReleaseOption,
) -> Request<'_, RepoEditRelease<'_>, Release>
pub fn repo_edit_release( &self, owner: &str, repo: &str, id: i64, body: EditReleaseOption, ) -> Request<'_, RepoEditRelease<'_>, Release>
Update a release
owner: owner of the reporepo: name of the repoid: id of the release to editbody: SeeEditReleaseOption
Sourcepub fn repo_list_release_attachments(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, RepoListReleaseAttachments<'_>, Vec<Attachment>>
pub fn repo_list_release_attachments( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, RepoListReleaseAttachments<'_>, Vec<Attachment>>
List release’s attachments
owner: owner of the reporepo: name of the repoid: id of the release
Sourcepub fn repo_create_release_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment: Option<&[u8]>,
external_url: Option<&str>,
query: RepoCreateReleaseAttachmentQuery,
) -> Request<'_, RepoCreateReleaseAttachment<'_>, Attachment>
pub fn repo_create_release_attachment( &self, owner: &str, repo: &str, id: i64, attachment: Option<&[u8]>, external_url: Option<&str>, query: RepoCreateReleaseAttachmentQuery, ) -> Request<'_, RepoCreateReleaseAttachment<'_>, Attachment>
Create a release attachment
owner: owner of the reporepo: name of the repoid: id of the releaseattachment: attachment to upload (this parameter is incompatible withexternal_url)external_url: url to external asset (this parameter is incompatible withattachment)
Sourcepub fn repo_get_release_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment_id: i64,
) -> Request<'_, RepoGetReleaseAttachment<'_>, Attachment>
pub fn repo_get_release_attachment( &self, owner: &str, repo: &str, id: i64, attachment_id: i64, ) -> Request<'_, RepoGetReleaseAttachment<'_>, Attachment>
Get a release attachment
owner: owner of the reporepo: name of the repoid: id of the releaseattachment_id: id of the attachment to get
Sourcepub fn repo_delete_release_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment_id: i64,
) -> Request<'_, RepoDeleteReleaseAttachment<'_>, ()>
pub fn repo_delete_release_attachment( &self, owner: &str, repo: &str, id: i64, attachment_id: i64, ) -> Request<'_, RepoDeleteReleaseAttachment<'_>, ()>
Delete a release attachment
owner: owner of the reporepo: name of the repoid: id of the releaseattachment_id: id of the attachment to delete
Sourcepub fn repo_edit_release_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment_id: i64,
body: EditAttachmentOptions,
) -> Request<'_, RepoEditReleaseAttachment<'_>, Attachment>
pub fn repo_edit_release_attachment( &self, owner: &str, repo: &str, id: i64, attachment_id: i64, body: EditAttachmentOptions, ) -> Request<'_, RepoEditReleaseAttachment<'_>, Attachment>
Edit a release attachment
owner: owner of the reporepo: name of the repoid: id of the releaseattachment_id: id of the attachment to editbody: SeeEditAttachmentOptions
Sourcepub fn repo_get_reviewers(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoGetReviewers<'_>, (UserListHeaders, Vec<User>)>
pub fn repo_get_reviewers( &self, owner: &str, repo: &str, ) -> Request<'_, RepoGetReviewers<'_>, (UserListHeaders, Vec<User>)>
Return all users that can be requested to review in this repo
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_signing_key(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoSigningKey<'_>, String>
pub fn repo_signing_key( &self, owner: &str, repo: &str, ) -> Request<'_, RepoSigningKey<'_>, String>
Get signing-key.gpg for given repository
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_list_stargazers(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListStargazers<'_>, (UserListHeaders, Vec<User>)>
pub fn repo_list_stargazers( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListStargazers<'_>, (UserListHeaders, Vec<User>)>
List a repo’s stargazers
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_list_statuses(
&self,
owner: &str,
repo: &str,
sha: &str,
query: RepoListStatusesQuery,
) -> Request<'_, RepoListStatuses<'_>, (CommitStatusListHeaders, Vec<CommitStatus>)>
pub fn repo_list_statuses( &self, owner: &str, repo: &str, sha: &str, query: RepoListStatusesQuery, ) -> Request<'_, RepoListStatuses<'_>, (CommitStatusListHeaders, Vec<CommitStatus>)>
Get a commit’s statuses
owner: owner of the reporepo: name of the reposha: sha of the commit
Sourcepub fn repo_create_status(
&self,
owner: &str,
repo: &str,
sha: &str,
body: CreateStatusOption,
) -> Request<'_, RepoCreateStatus<'_>, CommitStatus>
pub fn repo_create_status( &self, owner: &str, repo: &str, sha: &str, body: CreateStatusOption, ) -> Request<'_, RepoCreateStatus<'_>, CommitStatus>
Create a commit status
owner: owner of the reporepo: name of the reposha: sha of the commitbody: SeeCreateStatusOption
Sourcepub fn repo_list_subscribers(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListSubscribers<'_>, (UserListHeaders, Vec<User>)>
pub fn repo_list_subscribers( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListSubscribers<'_>, (UserListHeaders, Vec<User>)>
List a repo’s watchers
owner: owner of the reporepo: name of the repo
Sourcepub fn user_current_check_subscription(
&self,
owner: &str,
repo: &str,
) -> Request<'_, UserCurrentCheckSubscription<'_>, WatchInfo>
pub fn user_current_check_subscription( &self, owner: &str, repo: &str, ) -> Request<'_, UserCurrentCheckSubscription<'_>, WatchInfo>
Check if the current user is watching a repo
owner: owner of the reporepo: name of the repo
Sourcepub fn user_current_put_subscription(
&self,
owner: &str,
repo: &str,
) -> Request<'_, UserCurrentPutSubscription<'_>, WatchInfo>
pub fn user_current_put_subscription( &self, owner: &str, repo: &str, ) -> Request<'_, UserCurrentPutSubscription<'_>, WatchInfo>
Watch a repo
owner: owner of the reporepo: name of the repo
Sourcepub fn user_current_delete_subscription(
&self,
owner: &str,
repo: &str,
) -> Request<'_, UserCurrentDeleteSubscription<'_>, ()>
pub fn user_current_delete_subscription( &self, owner: &str, repo: &str, ) -> Request<'_, UserCurrentDeleteSubscription<'_>, ()>
Unwatch a repo
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_sync_fork_default_info(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoSyncForkDefaultInfo<'_>, SyncForkInfo>
pub fn repo_sync_fork_default_info( &self, owner: &str, repo: &str, ) -> Request<'_, RepoSyncForkDefaultInfo<'_>, SyncForkInfo>
Gets information about syncing the fork default branch with the base branch
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_sync_fork_default(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoSyncForkDefault<'_>, ()>
pub fn repo_sync_fork_default( &self, owner: &str, repo: &str, ) -> Request<'_, RepoSyncForkDefault<'_>, ()>
Syncs the default branch of a fork with the base branch
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_sync_fork_branch_info(
&self,
owner: &str,
repo: &str,
branch: &str,
) -> Request<'_, RepoSyncForkBranchInfo<'_>, SyncForkInfo>
pub fn repo_sync_fork_branch_info( &self, owner: &str, repo: &str, branch: &str, ) -> Request<'_, RepoSyncForkBranchInfo<'_>, SyncForkInfo>
Gets information about syncing a fork branch with the base branch
owner: owner of the reporepo: name of the repobranch: The branch
Sourcepub fn repo_sync_fork_branch(
&self,
owner: &str,
repo: &str,
branch: &str,
) -> Request<'_, RepoSyncForkBranch<'_>, ()>
pub fn repo_sync_fork_branch( &self, owner: &str, repo: &str, branch: &str, ) -> Request<'_, RepoSyncForkBranch<'_>, ()>
Syncs a fork branch with the base branch
owner: owner of the reporepo: name of the repobranch: The branch
Sourcepub fn repo_list_tag_protection(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListTagProtection<'_>, Vec<TagProtection>>
pub fn repo_list_tag_protection( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListTagProtection<'_>, Vec<TagProtection>>
List tag protections for a repository
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_create_tag_protection(
&self,
owner: &str,
repo: &str,
body: CreateTagProtectionOption,
) -> Request<'_, RepoCreateTagProtection<'_>, TagProtection>
pub fn repo_create_tag_protection( &self, owner: &str, repo: &str, body: CreateTagProtectionOption, ) -> Request<'_, RepoCreateTagProtection<'_>, TagProtection>
Create a tag protections for a repository
owner: owner of the reporepo: name of the repobody: SeeCreateTagProtectionOption
Sourcepub fn repo_get_tag_protection(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, RepoGetTagProtection<'_>, TagProtection>
pub fn repo_get_tag_protection( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, RepoGetTagProtection<'_>, TagProtection>
Get a specific tag protection for the repository
owner: owner of the reporepo: name of the repoid: id of the tag protect to get
Sourcepub fn repo_delete_tag_protection(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Request<'_, RepoDeleteTagProtection<'_>, ()>
pub fn repo_delete_tag_protection( &self, owner: &str, repo: &str, id: i64, ) -> Request<'_, RepoDeleteTagProtection<'_>, ()>
Delete a specific tag protection for the repository
owner: owner of the reporepo: name of the repoid: id of protected tag
Sourcepub fn repo_edit_tag_protection(
&self,
owner: &str,
repo: &str,
id: i64,
body: EditTagProtectionOption,
) -> Request<'_, RepoEditTagProtection<'_>, TagProtection>
pub fn repo_edit_tag_protection( &self, owner: &str, repo: &str, id: i64, body: EditTagProtectionOption, ) -> Request<'_, RepoEditTagProtection<'_>, TagProtection>
Edit a tag protections for a repository. Only fields that are set will be changed
owner: owner of the reporepo: name of the repoid: id of protected tagbody: SeeEditTagProtectionOption
List a repository’s tags
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_create_tag(
&self,
owner: &str,
repo: &str,
body: CreateTagOption,
) -> Request<'_, RepoCreateTag<'_>, Tag>
pub fn repo_create_tag( &self, owner: &str, repo: &str, body: CreateTagOption, ) -> Request<'_, RepoCreateTag<'_>, Tag>
Create a new git tag in a repository
owner: owner of the reporepo: name of the repobody: SeeCreateTagOption
Sourcepub fn repo_get_tag(
&self,
owner: &str,
repo: &str,
tag: &str,
) -> Request<'_, RepoGetTag<'_>, Tag>
pub fn repo_get_tag( &self, owner: &str, repo: &str, tag: &str, ) -> Request<'_, RepoGetTag<'_>, Tag>
Get the tag of a repository by tag name
owner: owner of the reporepo: name of the repotag: name of tag
Sourcepub fn repo_delete_tag(
&self,
owner: &str,
repo: &str,
tag: &str,
) -> Request<'_, RepoDeleteTag<'_>, ()>
pub fn repo_delete_tag( &self, owner: &str, repo: &str, tag: &str, ) -> Request<'_, RepoDeleteTag<'_>, ()>
Delete a repository’s tag by name
owner: owner of the reporepo: name of the repotag: name of tag to delete
Sourcepub fn repo_list_teams(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListTeams<'_>, Vec<Team>>
pub fn repo_list_teams( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListTeams<'_>, Vec<Team>>
List a repository’s teams
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_check_team(
&self,
owner: &str,
repo: &str,
team: &str,
) -> Request<'_, RepoCheckTeam<'_>, Team>
pub fn repo_check_team( &self, owner: &str, repo: &str, team: &str, ) -> Request<'_, RepoCheckTeam<'_>, Team>
Check if a team is assigned to a repository
owner: owner of the reporepo: name of the repoteam: team name
Sourcepub fn repo_add_team(
&self,
owner: &str,
repo: &str,
team: &str,
) -> Request<'_, RepoAddTeam<'_>, ()>
pub fn repo_add_team( &self, owner: &str, repo: &str, team: &str, ) -> Request<'_, RepoAddTeam<'_>, ()>
Add a team to a repository
owner: owner of the reporepo: name of the repoteam: team name
Sourcepub fn repo_delete_team(
&self,
owner: &str,
repo: &str,
team: &str,
) -> Request<'_, RepoDeleteTeam<'_>, ()>
pub fn repo_delete_team( &self, owner: &str, repo: &str, team: &str, ) -> Request<'_, RepoDeleteTeam<'_>, ()>
Delete a team from a repository
owner: owner of the reporepo: name of the repoteam: team name
Sourcepub fn repo_tracked_times(
&self,
owner: &str,
repo: &str,
query: RepoTrackedTimesQuery,
) -> Request<'_, RepoTrackedTimes<'_>, (TrackedTimeListHeaders, Vec<TrackedTime>)>
pub fn repo_tracked_times( &self, owner: &str, repo: &str, query: RepoTrackedTimesQuery, ) -> Request<'_, RepoTrackedTimes<'_>, (TrackedTimeListHeaders, Vec<TrackedTime>)>
List a repo’s tracked times
owner: owner of the reporepo: name of the repo
Sourcepub fn user_tracked_times(
&self,
owner: &str,
repo: &str,
user: &str,
) -> Request<'_, UserTrackedTimes<'_>, Vec<TrackedTime>>
pub fn user_tracked_times( &self, owner: &str, repo: &str, user: &str, ) -> Request<'_, UserTrackedTimes<'_>, Vec<TrackedTime>>
List a user’s tracked times in a repo
owner: owner of the reporepo: name of the repouser: username of user
Sourcepub fn repo_list_topics(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoListTopics<'_>, TopicName>
pub fn repo_list_topics( &self, owner: &str, repo: &str, ) -> Request<'_, RepoListTopics<'_>, TopicName>
Get list of topics that a repository has
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_update_topics(
&self,
owner: &str,
repo: &str,
body: RepoTopicOptions,
) -> Request<'_, RepoUpdateTopics<'_>, ()>
pub fn repo_update_topics( &self, owner: &str, repo: &str, body: RepoTopicOptions, ) -> Request<'_, RepoUpdateTopics<'_>, ()>
Replace list of topics for a repository
owner: owner of the reporepo: name of the repobody: SeeRepoTopicOptions
Sourcepub fn repo_add_topic(
&self,
owner: &str,
repo: &str,
topic: &str,
) -> Request<'_, RepoAddTopic<'_>, ()>
pub fn repo_add_topic( &self, owner: &str, repo: &str, topic: &str, ) -> Request<'_, RepoAddTopic<'_>, ()>
Add a topic to a repository
owner: owner of the reporepo: name of the repotopic: name of the topic to add
Sourcepub fn repo_delete_topic(
&self,
owner: &str,
repo: &str,
topic: &str,
) -> Request<'_, RepoDeleteTopic<'_>, ()>
pub fn repo_delete_topic( &self, owner: &str, repo: &str, topic: &str, ) -> Request<'_, RepoDeleteTopic<'_>, ()>
Delete a topic from a repository
owner: owner of the reporepo: name of the repotopic: name of the topic to delete
Sourcepub fn repo_transfer(
&self,
owner: &str,
repo: &str,
body: TransferRepoOption,
) -> Request<'_, RepoTransfer<'_>, Repository>
pub fn repo_transfer( &self, owner: &str, repo: &str, body: TransferRepoOption, ) -> Request<'_, RepoTransfer<'_>, Repository>
Transfer a repo ownership
owner: owner of the repo to transferrepo: name of the repo to transferbody: Transfer Options SeeTransferRepoOption
Sourcepub fn accept_repo_transfer(
&self,
owner: &str,
repo: &str,
) -> Request<'_, AcceptRepoTransfer<'_>, Repository>
pub fn accept_repo_transfer( &self, owner: &str, repo: &str, ) -> Request<'_, AcceptRepoTransfer<'_>, Repository>
Accept a repo transfer
owner: owner of the repo to transferrepo: name of the repo to transfer
Sourcepub fn reject_repo_transfer(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RejectRepoTransfer<'_>, Repository>
pub fn reject_repo_transfer( &self, owner: &str, repo: &str, ) -> Request<'_, RejectRepoTransfer<'_>, Repository>
Reject a repo transfer
owner: owner of the repo to transferrepo: name of the repo to transfer
Sourcepub fn repo_create_wiki_page(
&self,
owner: &str,
repo: &str,
body: CreateWikiPageOptions,
) -> Request<'_, RepoCreateWikiPage<'_>, WikiPage>
pub fn repo_create_wiki_page( &self, owner: &str, repo: &str, body: CreateWikiPageOptions, ) -> Request<'_, RepoCreateWikiPage<'_>, WikiPage>
Create a wiki page
owner: owner of the reporepo: name of the repobody: SeeCreateWikiPageOptions
Sourcepub fn repo_get_wiki_page(
&self,
owner: &str,
repo: &str,
page_name: &str,
) -> Request<'_, RepoGetWikiPage<'_>, WikiPage>
pub fn repo_get_wiki_page( &self, owner: &str, repo: &str, page_name: &str, ) -> Request<'_, RepoGetWikiPage<'_>, WikiPage>
Get a wiki page
owner: owner of the reporepo: name of the repopageName: name of the page
Sourcepub fn repo_delete_wiki_page(
&self,
owner: &str,
repo: &str,
page_name: &str,
) -> Request<'_, RepoDeleteWikiPage<'_>, ()>
pub fn repo_delete_wiki_page( &self, owner: &str, repo: &str, page_name: &str, ) -> Request<'_, RepoDeleteWikiPage<'_>, ()>
Delete a wiki page
owner: owner of the reporepo: name of the repopageName: name of the page
Sourcepub fn repo_edit_wiki_page(
&self,
owner: &str,
repo: &str,
page_name: &str,
body: CreateWikiPageOptions,
) -> Request<'_, RepoEditWikiPage<'_>, WikiPage>
pub fn repo_edit_wiki_page( &self, owner: &str, repo: &str, page_name: &str, body: CreateWikiPageOptions, ) -> Request<'_, RepoEditWikiPage<'_>, WikiPage>
Edit a wiki page
owner: owner of the reporepo: name of the repopageName: name of the pagebody: SeeCreateWikiPageOptions
Sourcepub fn repo_get_wiki_pages(
&self,
owner: &str,
repo: &str,
) -> Request<'_, RepoGetWikiPages<'_>, (WikiPageListHeaders, Vec<WikiPageMetaData>)>
pub fn repo_get_wiki_pages( &self, owner: &str, repo: &str, ) -> Request<'_, RepoGetWikiPages<'_>, (WikiPageListHeaders, Vec<WikiPageMetaData>)>
Get all wiki pages
owner: owner of the reporepo: name of the repo
Sourcepub fn repo_get_wiki_page_revisions(
&self,
owner: &str,
repo: &str,
page_name: &str,
) -> Request<'_, RepoGetWikiPageRevisions<'_>, (WikiCommitListHeaders, WikiCommitList)>
pub fn repo_get_wiki_page_revisions( &self, owner: &str, repo: &str, page_name: &str, ) -> Request<'_, RepoGetWikiPageRevisions<'_>, (WikiCommitListHeaders, WikiCommitList)>
Get revisions of a wiki page
owner: owner of the reporepo: name of the repopageName: name of the page
Sourcepub fn generate_repo(
&self,
template_owner: &str,
template_repo: &str,
body: GenerateRepoOption,
) -> Request<'_, GenerateRepo<'_>, Repository>
pub fn generate_repo( &self, template_owner: &str, template_repo: &str, body: GenerateRepoOption, ) -> Request<'_, GenerateRepo<'_>, Repository>
Create a repository using a template
template_owner: name of the template repository ownertemplate_repo: name of the template repositorybody: SeeGenerateRepoOption
Sourcepub fn repo_get_by_id(&self, id: i64) -> Request<'_, RepoGetById, Repository>
pub fn repo_get_by_id(&self, id: i64) -> Request<'_, RepoGetById, Repository>
Get a repository by id
id: id of the repo to get
Sourcepub fn get_general_api_settings(
&self,
) -> Request<'_, GetGeneralApiSettings, GeneralAPISettings>
pub fn get_general_api_settings( &self, ) -> Request<'_, GetGeneralApiSettings, GeneralAPISettings>
Get instance’s global settings for api
Sourcepub fn get_general_attachment_settings(
&self,
) -> Request<'_, GetGeneralAttachmentSettings, GeneralAttachmentSettings>
pub fn get_general_attachment_settings( &self, ) -> Request<'_, GetGeneralAttachmentSettings, GeneralAttachmentSettings>
Get instance’s global settings for Attachment
Sourcepub fn get_general_repository_settings(
&self,
) -> Request<'_, GetGeneralRepositorySettings, GeneralRepoSettings>
pub fn get_general_repository_settings( &self, ) -> Request<'_, GetGeneralRepositorySettings, GeneralRepoSettings>
Get instance’s global settings for repositories
Sourcepub fn get_general_ui_settings(
&self,
) -> Request<'_, GetGeneralUiSettings, GeneralUISettings>
pub fn get_general_ui_settings( &self, ) -> Request<'_, GetGeneralUiSettings, GeneralUISettings>
Get instance’s global settings for ui
Sourcepub fn get_signing_key(&self) -> Request<'_, GetSigningKey, String>
pub fn get_signing_key(&self) -> Request<'_, GetSigningKey, String>
Get default signing-key.gpg
Sourcepub fn get_ssh_signing_key(&self) -> Request<'_, GetSshSigningKey, String>
pub fn get_ssh_signing_key(&self) -> Request<'_, GetSshSigningKey, String>
Get default signing-key.ssh
Sourcepub fn org_get_team(&self, id: i64) -> Request<'_, OrgGetTeam, Team>
pub fn org_get_team(&self, id: i64) -> Request<'_, OrgGetTeam, Team>
Get a team
id: id of the team to get
Sourcepub fn org_delete_team(&self, id: i64) -> Request<'_, OrgDeleteTeam, ()>
pub fn org_delete_team(&self, id: i64) -> Request<'_, OrgDeleteTeam, ()>
Delete a team
id: id of the team to delete
Sourcepub fn org_edit_team(
&self,
id: i64,
body: EditTeamOption,
) -> Request<'_, OrgEditTeam, Team>
pub fn org_edit_team( &self, id: i64, body: EditTeamOption, ) -> Request<'_, OrgEditTeam, Team>
Edit a team
id: id of the team to editbody: SeeEditTeamOption
Sourcepub fn org_list_team_activity_feeds(
&self,
id: i64,
query: OrgListTeamActivityFeedsQuery,
) -> Request<'_, OrgListTeamActivityFeeds, (ActivityFeedsListHeaders, Vec<Activity>)>
pub fn org_list_team_activity_feeds( &self, id: i64, query: OrgListTeamActivityFeedsQuery, ) -> Request<'_, OrgListTeamActivityFeeds, (ActivityFeedsListHeaders, Vec<Activity>)>
List a team’s activity feeds
id: id of the team
Sourcepub fn org_list_team_members(
&self,
id: i64,
) -> Request<'_, OrgListTeamMembers, (UserListHeaders, Vec<User>)>
pub fn org_list_team_members( &self, id: i64, ) -> Request<'_, OrgListTeamMembers, (UserListHeaders, Vec<User>)>
List a team’s members
id: id of the team
Sourcepub fn org_list_team_member(
&self,
id: i64,
username: &str,
) -> Request<'_, OrgListTeamMember<'_>, User>
pub fn org_list_team_member( &self, id: i64, username: &str, ) -> Request<'_, OrgListTeamMember<'_>, User>
List a particular member of team
id: id of the teamusername: username of the member to list
Sourcepub fn org_add_team_member(
&self,
id: i64,
username: &str,
) -> Request<'_, OrgAddTeamMember<'_>, ()>
pub fn org_add_team_member( &self, id: i64, username: &str, ) -> Request<'_, OrgAddTeamMember<'_>, ()>
Add a team member
id: id of the teamusername: username of the user to add
Sourcepub fn org_remove_team_member(
&self,
id: i64,
username: &str,
) -> Request<'_, OrgRemoveTeamMember<'_>, ()>
pub fn org_remove_team_member( &self, id: i64, username: &str, ) -> Request<'_, OrgRemoveTeamMember<'_>, ()>
Remove a team member
id: id of the teamusername: username of the user to remove
Sourcepub fn org_list_team_repos(
&self,
id: i64,
) -> Request<'_, OrgListTeamRepos, (RepositoryListHeaders, Vec<Repository>)>
pub fn org_list_team_repos( &self, id: i64, ) -> Request<'_, OrgListTeamRepos, (RepositoryListHeaders, Vec<Repository>)>
List a team’s repos
id: id of the team
Sourcepub fn org_list_team_repo(
&self,
id: i64,
org: &str,
repo: &str,
) -> Request<'_, OrgListTeamRepo<'_>, Repository>
pub fn org_list_team_repo( &self, id: i64, org: &str, repo: &str, ) -> Request<'_, OrgListTeamRepo<'_>, Repository>
List a particular repo of team
id: id of the teamorg: organization that owns the repo to listrepo: name of the repo to list
Sourcepub fn org_add_team_repository(
&self,
id: i64,
org: &str,
repo: &str,
) -> Request<'_, OrgAddTeamRepository<'_>, ()>
pub fn org_add_team_repository( &self, id: i64, org: &str, repo: &str, ) -> Request<'_, OrgAddTeamRepository<'_>, ()>
Add a repository to a team
id: id of the teamorg: organization that owns the repo to addrepo: name of the repo to add
Sourcepub fn org_remove_team_repository(
&self,
id: i64,
org: &str,
repo: &str,
) -> Request<'_, OrgRemoveTeamRepository<'_>, ()>
pub fn org_remove_team_repository( &self, id: i64, org: &str, repo: &str, ) -> Request<'_, OrgRemoveTeamRepository<'_>, ()>
Remove a repository from a team
id: id of the teamorg: organization that owns the repo to removerepo: name of the repo to remove
Sourcepub fn topic_search(
&self,
query: TopicSearchQuery,
) -> Request<'_, TopicSearch, TopicSearchResults>
pub fn topic_search( &self, query: TopicSearchQuery, ) -> Request<'_, TopicSearch, TopicSearchResults>
Search for topics by keyword
Sourcepub fn user_get_current(&self) -> Request<'_, UserGetCurrent, User>
pub fn user_get_current(&self) -> Request<'_, UserGetCurrent, User>
Get the authenticated user
Sourcepub fn user_search_run_jobs(
&self,
query: UserSearchRunJobsQuery,
) -> Request<'_, UserSearchRunJobs, Vec<ActionRunJob>>
pub fn user_search_run_jobs( &self, query: UserSearchRunJobsQuery, ) -> Request<'_, UserSearchRunJobs, Vec<ActionRunJob>>
Search for user’s action jobs according filter conditions
Sourcepub fn user_get_runner_registration_token(
&self,
) -> Request<'_, UserGetRunnerRegistrationToken, RegistrationToken>
pub fn user_get_runner_registration_token( &self, ) -> Request<'_, UserGetRunnerRegistrationToken, RegistrationToken>
Get an user’s actions runner registration token
Sourcepub fn update_user_secret(
&self,
secretname: &str,
body: CreateOrUpdateSecretOption,
) -> Request<'_, UpdateUserSecret<'_>, ()>
pub fn update_user_secret( &self, secretname: &str, body: CreateOrUpdateSecretOption, ) -> Request<'_, UpdateUserSecret<'_>, ()>
Create or Update a secret value in a user scope
secretname: name of the secretbody: SeeCreateOrUpdateSecretOption
Sourcepub fn delete_user_secret(
&self,
secretname: &str,
) -> Request<'_, DeleteUserSecret<'_>, ()>
pub fn delete_user_secret( &self, secretname: &str, ) -> Request<'_, DeleteUserSecret<'_>, ()>
Delete a secret in a user scope
secretname: name of the secret
Sourcepub fn get_user_variables_list(
&self,
) -> Request<'_, GetUserVariablesList, (VariableListHeaders, Vec<ActionVariable>)>
pub fn get_user_variables_list( &self, ) -> Request<'_, GetUserVariablesList, (VariableListHeaders, Vec<ActionVariable>)>
Get the user-level list of variables which is created by current doer
Sourcepub fn get_user_variable(
&self,
variablename: &str,
) -> Request<'_, GetUserVariable<'_>, ActionVariable>
pub fn get_user_variable( &self, variablename: &str, ) -> Request<'_, GetUserVariable<'_>, ActionVariable>
Get a user-level variable which is created by current doer
variablename: name of the variable
Sourcepub fn update_user_variable(
&self,
variablename: &str,
body: UpdateVariableOption,
) -> Request<'_, UpdateUserVariable<'_>, ()>
pub fn update_user_variable( &self, variablename: &str, body: UpdateVariableOption, ) -> Request<'_, UpdateUserVariable<'_>, ()>
Update a user-level variable which is created by current doer
variablename: name of the variablebody: SeeUpdateVariableOption
Sourcepub fn create_user_variable(
&self,
variablename: &str,
body: CreateVariableOption,
) -> Request<'_, CreateUserVariable<'_>, ()>
pub fn create_user_variable( &self, variablename: &str, body: CreateVariableOption, ) -> Request<'_, CreateUserVariable<'_>, ()>
Create a user-level variable
variablename: name of the variablebody: SeeCreateVariableOption
Sourcepub fn delete_user_variable(
&self,
variablename: &str,
) -> Request<'_, DeleteUserVariable<'_>, ()>
pub fn delete_user_variable( &self, variablename: &str, ) -> Request<'_, DeleteUserVariable<'_>, ()>
Delete a user-level variable which is created by current doer
variablename: name of the variable
Sourcepub fn user_get_oauth2_applications(
&self,
) -> Request<'_, UserGetOAuth2Applications, (OAuth2ApplicationListHeaders, Vec<OAuth2Application>)>
pub fn user_get_oauth2_applications( &self, ) -> Request<'_, UserGetOAuth2Applications, (OAuth2ApplicationListHeaders, Vec<OAuth2Application>)>
List the authenticated user’s oauth2 applications
Sourcepub fn user_create_oauth2_application(
&self,
body: CreateOAuth2ApplicationOptions,
) -> Request<'_, UserCreateOAuth2Application, OAuth2Application>
pub fn user_create_oauth2_application( &self, body: CreateOAuth2ApplicationOptions, ) -> Request<'_, UserCreateOAuth2Application, OAuth2Application>
Creates a new OAuth2 application
body: SeeCreateOAuth2ApplicationOptions
Sourcepub fn user_get_oauth2_application(
&self,
id: i64,
) -> Request<'_, UserGetOAuth2Application, OAuth2Application>
pub fn user_get_oauth2_application( &self, id: i64, ) -> Request<'_, UserGetOAuth2Application, OAuth2Application>
Get an OAuth2 application
id: Application ID to be found
Sourcepub fn user_delete_oauth2_application(
&self,
id: i64,
) -> Request<'_, UserDeleteOAuth2Application, ()>
pub fn user_delete_oauth2_application( &self, id: i64, ) -> Request<'_, UserDeleteOAuth2Application, ()>
Delete an OAuth2 application
id: token to be deleted
Sourcepub fn user_update_oauth2_application(
&self,
id: i64,
body: CreateOAuth2ApplicationOptions,
) -> Request<'_, UserUpdateOAuth2Application, OAuth2Application>
pub fn user_update_oauth2_application( &self, id: i64, body: CreateOAuth2ApplicationOptions, ) -> Request<'_, UserUpdateOAuth2Application, OAuth2Application>
Update an OAuth2 application, this includes regenerating the client secret
id: application to be updatedbody: SeeCreateOAuth2ApplicationOptions
Sourcepub fn user_update_avatar(
&self,
body: UpdateUserAvatarOption,
) -> Request<'_, UserUpdateAvatar, ()>
pub fn user_update_avatar( &self, body: UpdateUserAvatarOption, ) -> Request<'_, UserUpdateAvatar, ()>
Update avatar of the current user
body: SeeUpdateUserAvatarOption
Sourcepub fn user_delete_avatar(&self) -> Request<'_, UserDeleteAvatar, ()>
pub fn user_delete_avatar(&self) -> Request<'_, UserDeleteAvatar, ()>
Delete avatar of the current user. It will be replaced by a default one
Sourcepub fn user_block_user(
&self,
username: &str,
) -> Request<'_, UserBlockUser<'_>, ()>
pub fn user_block_user( &self, username: &str, ) -> Request<'_, UserBlockUser<'_>, ()>
Blocks a user from the doer
username: username of the user
Sourcepub fn user_list_emails(&self) -> Request<'_, UserListEmails, Vec<Email>>
pub fn user_list_emails(&self) -> Request<'_, UserListEmails, Vec<Email>>
List all email addresses of the current user
Sourcepub fn user_add_email(
&self,
body: CreateEmailOption,
) -> Request<'_, UserAddEmail, Vec<Email>>
pub fn user_add_email( &self, body: CreateEmailOption, ) -> Request<'_, UserAddEmail, Vec<Email>>
Add an email addresses to the current user’s account
body: SeeCreateEmailOption
Sourcepub fn user_delete_email(
&self,
body: DeleteEmailOption,
) -> Request<'_, UserDeleteEmail, ()>
pub fn user_delete_email( &self, body: DeleteEmailOption, ) -> Request<'_, UserDeleteEmail, ()>
Delete email addresses from the current user’s account
body: SeeDeleteEmailOption
Sourcepub fn user_current_list_followers(
&self,
) -> Request<'_, UserCurrentListFollowers, (UserListHeaders, Vec<User>)>
pub fn user_current_list_followers( &self, ) -> Request<'_, UserCurrentListFollowers, (UserListHeaders, Vec<User>)>
List the authenticated user’s followers
Sourcepub fn user_current_list_following(
&self,
) -> Request<'_, UserCurrentListFollowing, (UserListHeaders, Vec<User>)>
pub fn user_current_list_following( &self, ) -> Request<'_, UserCurrentListFollowing, (UserListHeaders, Vec<User>)>
List the users that the authenticated user is following
Sourcepub fn user_current_check_following(
&self,
username: &str,
) -> Request<'_, UserCurrentCheckFollowing<'_>, ()>
pub fn user_current_check_following( &self, username: &str, ) -> Request<'_, UserCurrentCheckFollowing<'_>, ()>
Check whether a user is followed by the authenticated user
username: username of followed user
Sourcepub fn user_current_put_follow(
&self,
username: &str,
) -> Request<'_, UserCurrentPutFollow<'_>, ()>
pub fn user_current_put_follow( &self, username: &str, ) -> Request<'_, UserCurrentPutFollow<'_>, ()>
Follow a user
username: username of user to follow
Sourcepub fn user_current_delete_follow(
&self,
username: &str,
) -> Request<'_, UserCurrentDeleteFollow<'_>, ()>
pub fn user_current_delete_follow( &self, username: &str, ) -> Request<'_, UserCurrentDeleteFollow<'_>, ()>
Unfollow a user
username: username of user to unfollow
Sourcepub fn get_verification_token(
&self,
) -> Request<'_, GetVerificationToken, String>
pub fn get_verification_token( &self, ) -> Request<'_, GetVerificationToken, String>
Get a Token to verify
Sourcepub fn user_verify_gpg_key(
&self,
body: VerifyGPGKeyOption,
) -> Request<'_, UserVerifyGpgKey, GPGKey>
pub fn user_verify_gpg_key( &self, body: VerifyGPGKeyOption, ) -> Request<'_, UserVerifyGpgKey, GPGKey>
Verify a GPG key
body: SeeVerifyGPGKeyOption
Sourcepub fn user_current_list_gpg_keys(
&self,
) -> Request<'_, UserCurrentListGpgKeys, (GpgKeyListHeaders, Vec<GPGKey>)>
pub fn user_current_list_gpg_keys( &self, ) -> Request<'_, UserCurrentListGpgKeys, (GpgKeyListHeaders, Vec<GPGKey>)>
List the authenticated user’s GPG keys
Sourcepub fn user_current_post_gpg_key(
&self,
form: CreateGPGKeyOption,
) -> Request<'_, UserCurrentPostGpgKey, GPGKey>
pub fn user_current_post_gpg_key( &self, form: CreateGPGKeyOption, ) -> Request<'_, UserCurrentPostGpgKey, GPGKey>
Add a GPG public key to current user’s account
Form: SeeCreateGPGKeyOption
Sourcepub fn user_current_get_gpg_key(
&self,
id: i64,
) -> Request<'_, UserCurrentGetGpgKey, GPGKey>
pub fn user_current_get_gpg_key( &self, id: i64, ) -> Request<'_, UserCurrentGetGpgKey, GPGKey>
Get a GPG key
id: id of key to get
Sourcepub fn user_current_delete_gpg_key(
&self,
id: i64,
) -> Request<'_, UserCurrentDeleteGpgKey, ()>
pub fn user_current_delete_gpg_key( &self, id: i64, ) -> Request<'_, UserCurrentDeleteGpgKey, ()>
Remove a GPG public key from current user’s account
id: id of key to delete
Sourcepub fn user_list_hooks(&self) -> Request<'_, UserListHooks, Vec<Hook>>
pub fn user_list_hooks(&self) -> Request<'_, UserListHooks, Vec<Hook>>
List the authenticated user’s webhooks
Sourcepub fn user_create_hook(
&self,
body: CreateHookOption,
) -> Request<'_, UserCreateHook, Hook>
pub fn user_create_hook( &self, body: CreateHookOption, ) -> Request<'_, UserCreateHook, Hook>
Create a hook
body: SeeCreateHookOption
Sourcepub fn user_get_hook(&self, id: i64) -> Request<'_, UserGetHook, Hook>
pub fn user_get_hook(&self, id: i64) -> Request<'_, UserGetHook, Hook>
Get a hook
id: id of the hook to get
Sourcepub fn user_delete_hook(&self, id: i64) -> Request<'_, UserDeleteHook, ()>
pub fn user_delete_hook(&self, id: i64) -> Request<'_, UserDeleteHook, ()>
Delete a hook
id: id of the hook to delete
Sourcepub fn user_edit_hook(
&self,
id: i64,
body: EditHookOption,
) -> Request<'_, UserEditHook, Hook>
pub fn user_edit_hook( &self, id: i64, body: EditHookOption, ) -> Request<'_, UserEditHook, Hook>
Update a hook
id: id of the hook to updatebody: SeeEditHookOption
Sourcepub fn user_current_list_keys(
&self,
query: UserCurrentListKeysQuery,
) -> Request<'_, UserCurrentListKeys, (PublicKeyListHeaders, Vec<PublicKey>)>
pub fn user_current_list_keys( &self, query: UserCurrentListKeysQuery, ) -> Request<'_, UserCurrentListKeys, (PublicKeyListHeaders, Vec<PublicKey>)>
List the authenticated user’s public keys
Sourcepub fn user_current_post_key(
&self,
body: CreateKeyOption,
) -> Request<'_, UserCurrentPostKey, PublicKey>
pub fn user_current_post_key( &self, body: CreateKeyOption, ) -> Request<'_, UserCurrentPostKey, PublicKey>
Create a public key
body: SeeCreateKeyOption
Sourcepub fn user_current_get_key(
&self,
id: i64,
) -> Request<'_, UserCurrentGetKey, PublicKey>
pub fn user_current_get_key( &self, id: i64, ) -> Request<'_, UserCurrentGetKey, PublicKey>
Get a public key
id: id of key to get
Sourcepub fn user_current_delete_key(
&self,
id: i64,
) -> Request<'_, UserCurrentDeleteKey, ()>
pub fn user_current_delete_key( &self, id: i64, ) -> Request<'_, UserCurrentDeleteKey, ()>
Delete a public key
id: id of key to delete
Sourcepub fn user_list_blocked_users(
&self,
) -> Request<'_, UserListBlockedUsers, (BlockedUserListHeaders, Vec<BlockedUser>)>
pub fn user_list_blocked_users( &self, ) -> Request<'_, UserListBlockedUsers, (BlockedUserListHeaders, Vec<BlockedUser>)>
List the authenticated user’s blocked users
Sourcepub fn org_list_current_user_orgs(
&self,
) -> Request<'_, OrgListCurrentUserOrgs, Vec<Organization>>
pub fn org_list_current_user_orgs( &self, ) -> Request<'_, OrgListCurrentUserOrgs, Vec<Organization>>
List the current user’s organizations
Sourcepub fn user_get_quota(&self) -> Request<'_, UserGetQuota, QuotaInfo>
pub fn user_get_quota(&self) -> Request<'_, UserGetQuota, QuotaInfo>
Get quota information for the authenticated user
Sourcepub fn user_list_quota_artifacts(
&self,
) -> Request<'_, UserListQuotaArtifacts, (QuotaUsedArtifactListHeaders, Vec<QuotaUsedArtifact>)>
pub fn user_list_quota_artifacts( &self, ) -> Request<'_, UserListQuotaArtifacts, (QuotaUsedArtifactListHeaders, Vec<QuotaUsedArtifact>)>
List the artifacts affecting the authenticated user’s quota
Sourcepub fn user_list_quota_attachments(
&self,
) -> Request<'_, UserListQuotaAttachments, (QuotaUsedAttachmentListHeaders, Vec<QuotaUsedAttachment>)>
pub fn user_list_quota_attachments( &self, ) -> Request<'_, UserListQuotaAttachments, (QuotaUsedAttachmentListHeaders, Vec<QuotaUsedAttachment>)>
List the attachments affecting the authenticated user’s quota
Sourcepub fn user_check_quota(
&self,
query: UserCheckQuotaQuery,
) -> Request<'_, UserCheckQuota, bool>
pub fn user_check_quota( &self, query: UserCheckQuotaQuery, ) -> Request<'_, UserCheckQuota, bool>
Check if the authenticated user is over quota for a given subject
Sourcepub fn user_list_quota_packages(
&self,
) -> Request<'_, UserListQuotaPackages, (QuotaUsedPackageListHeaders, Vec<QuotaUsedPackage>)>
pub fn user_list_quota_packages( &self, ) -> Request<'_, UserListQuotaPackages, (QuotaUsedPackageListHeaders, Vec<QuotaUsedPackage>)>
List the packages affecting the authenticated user’s quota
Sourcepub fn user_current_list_repos(
&self,
query: UserCurrentListReposQuery,
) -> Request<'_, UserCurrentListRepos, (RepositoryListHeaders, Vec<Repository>)>
pub fn user_current_list_repos( &self, query: UserCurrentListReposQuery, ) -> Request<'_, UserCurrentListRepos, (RepositoryListHeaders, Vec<Repository>)>
List the repos that the authenticated user owns
Sourcepub fn create_current_user_repo(
&self,
body: CreateRepoOption,
) -> Request<'_, CreateCurrentUserRepo, Repository>
pub fn create_current_user_repo( &self, body: CreateRepoOption, ) -> Request<'_, CreateCurrentUserRepo, Repository>
Create a repository
body: SeeCreateRepoOption
Sourcepub fn get_user_settings(&self) -> Request<'_, GetUserSettings, UserSettings>
pub fn get_user_settings(&self) -> Request<'_, GetUserSettings, UserSettings>
Get current user’s account settings
Sourcepub fn update_user_settings(
&self,
body: UserSettingsOptions,
) -> Request<'_, UpdateUserSettings, UserSettings>
pub fn update_user_settings( &self, body: UserSettingsOptions, ) -> Request<'_, UpdateUserSettings, UserSettings>
Update settings in current user’s account
body: SeeUserSettingsOptions
Sourcepub fn user_current_list_starred(
&self,
) -> Request<'_, UserCurrentListStarred, (RepositoryListHeaders, Vec<Repository>)>
pub fn user_current_list_starred( &self, ) -> Request<'_, UserCurrentListStarred, (RepositoryListHeaders, Vec<Repository>)>
The repos that the authenticated user has starred
Sourcepub fn user_current_check_starring(
&self,
owner: &str,
repo: &str,
) -> Request<'_, UserCurrentCheckStarring<'_>, ()>
pub fn user_current_check_starring( &self, owner: &str, repo: &str, ) -> Request<'_, UserCurrentCheckStarring<'_>, ()>
Whether the authenticated is starring the repo
owner: owner of the reporepo: name of the repo
Sourcepub fn user_current_put_star(
&self,
owner: &str,
repo: &str,
) -> Request<'_, UserCurrentPutStar<'_>, ()>
pub fn user_current_put_star( &self, owner: &str, repo: &str, ) -> Request<'_, UserCurrentPutStar<'_>, ()>
Star the given repo
owner: owner of the repo to starrepo: name of the repo to star
Sourcepub fn user_current_delete_star(
&self,
owner: &str,
repo: &str,
) -> Request<'_, UserCurrentDeleteStar<'_>, ()>
pub fn user_current_delete_star( &self, owner: &str, repo: &str, ) -> Request<'_, UserCurrentDeleteStar<'_>, ()>
Unstar the given repo
owner: owner of the repo to unstarrepo: name of the repo to unstar
Sourcepub fn user_get_stop_watches(
&self,
) -> Request<'_, UserGetStopWatches, (StopWatchListHeaders, Vec<StopWatch>)>
pub fn user_get_stop_watches( &self, ) -> Request<'_, UserGetStopWatches, (StopWatchListHeaders, Vec<StopWatch>)>
Get list of all existing stopwatches
Sourcepub fn user_current_list_subscriptions(
&self,
) -> Request<'_, UserCurrentListSubscriptions, (RepositoryListHeaders, Vec<Repository>)>
pub fn user_current_list_subscriptions( &self, ) -> Request<'_, UserCurrentListSubscriptions, (RepositoryListHeaders, Vec<Repository>)>
List repositories watched by the authenticated user
Sourcepub fn user_list_teams(
&self,
) -> Request<'_, UserListTeams, (TeamListHeaders, Vec<Team>)>
pub fn user_list_teams( &self, ) -> Request<'_, UserListTeams, (TeamListHeaders, Vec<Team>)>
List all the teams a user belongs to
Sourcepub fn user_current_tracked_times(
&self,
query: UserCurrentTrackedTimesQuery,
) -> Request<'_, UserCurrentTrackedTimes, (TrackedTimeListHeaders, Vec<TrackedTime>)>
pub fn user_current_tracked_times( &self, query: UserCurrentTrackedTimesQuery, ) -> Request<'_, UserCurrentTrackedTimes, (TrackedTimeListHeaders, Vec<TrackedTime>)>
List the current user’s tracked times
Sourcepub fn user_unblock_user(
&self,
username: &str,
) -> Request<'_, UserUnblockUser<'_>, ()>
pub fn user_unblock_user( &self, username: &str, ) -> Request<'_, UserUnblockUser<'_>, ()>
Unblocks a user from the doer
username: username of the user
Sourcepub fn user_search(
&self,
query: UserSearchQuery,
) -> Request<'_, UserSearch, UserSearchResults>
pub fn user_search( &self, query: UserSearchQuery, ) -> Request<'_, UserSearch, UserSearchResults>
Search for users
Sourcepub fn user_get(&self, username: &str) -> Request<'_, UserGet<'_>, User>
pub fn user_get(&self, username: &str) -> Request<'_, UserGet<'_>, User>
Get a user
username: username of user to get
Sourcepub fn user_list_activity_feeds(
&self,
username: &str,
query: UserListActivityFeedsQuery,
) -> Request<'_, UserListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
pub fn user_list_activity_feeds( &self, username: &str, query: UserListActivityFeedsQuery, ) -> Request<'_, UserListActivityFeeds<'_>, (ActivityFeedsListHeaders, Vec<Activity>)>
List a user’s activity feeds
username: username of user
Sourcepub fn user_list_followers(
&self,
username: &str,
) -> Request<'_, UserListFollowers<'_>, (UserListHeaders, Vec<User>)>
pub fn user_list_followers( &self, username: &str, ) -> Request<'_, UserListFollowers<'_>, (UserListHeaders, Vec<User>)>
List the given user’s followers
username: username of user
Sourcepub fn user_list_following(
&self,
username: &str,
) -> Request<'_, UserListFollowing<'_>, (UserListHeaders, Vec<User>)>
pub fn user_list_following( &self, username: &str, ) -> Request<'_, UserListFollowing<'_>, (UserListHeaders, Vec<User>)>
List the users that the given user is following
username: username of user
Sourcepub fn user_check_following(
&self,
username: &str,
target: &str,
) -> Request<'_, UserCheckFollowing<'_>, ()>
pub fn user_check_following( &self, username: &str, target: &str, ) -> Request<'_, UserCheckFollowing<'_>, ()>
Check if one user is following another user
username: username of following usertarget: username of followed user
Sourcepub fn user_list_gpg_keys(
&self,
username: &str,
) -> Request<'_, UserListGpgKeys<'_>, (GpgKeyListHeaders, Vec<GPGKey>)>
pub fn user_list_gpg_keys( &self, username: &str, ) -> Request<'_, UserListGpgKeys<'_>, (GpgKeyListHeaders, Vec<GPGKey>)>
List the given user’s GPG keys
username: username of user
Sourcepub fn user_get_heatmap_data(
&self,
username: &str,
) -> Request<'_, UserGetHeatmapData<'_>, Vec<UserHeatmapData>>
pub fn user_get_heatmap_data( &self, username: &str, ) -> Request<'_, UserGetHeatmapData<'_>, Vec<UserHeatmapData>>
Get a user’s heatmap
username: username of user to get
Sourcepub fn user_list_keys(
&self,
username: &str,
query: UserListKeysQuery,
) -> Request<'_, UserListKeys<'_>, (PublicKeyListHeaders, Vec<PublicKey>)>
pub fn user_list_keys( &self, username: &str, query: UserListKeysQuery, ) -> Request<'_, UserListKeys<'_>, (PublicKeyListHeaders, Vec<PublicKey>)>
List the given user’s public keys
username: username of user
Sourcepub fn org_list_user_orgs(
&self,
username: &str,
) -> Request<'_, OrgListUserOrgs<'_>, Vec<Organization>>
pub fn org_list_user_orgs( &self, username: &str, ) -> Request<'_, OrgListUserOrgs<'_>, Vec<Organization>>
List a user’s organizations
username: username of user
Sourcepub fn org_get_user_permissions(
&self,
username: &str,
org: &str,
) -> Request<'_, OrgGetUserPermissions<'_>, OrganizationPermissions>
pub fn org_get_user_permissions( &self, username: &str, org: &str, ) -> Request<'_, OrgGetUserPermissions<'_>, OrganizationPermissions>
Get user permissions in organization
username: username of userorg: name of the organization
Sourcepub fn user_list_repos(
&self,
username: &str,
) -> Request<'_, UserListRepos<'_>, (RepositoryListHeaders, Vec<Repository>)>
pub fn user_list_repos( &self, username: &str, ) -> Request<'_, UserListRepos<'_>, (RepositoryListHeaders, Vec<Repository>)>
List the repos owned by the given user
username: username of user
Sourcepub fn user_list_starred(
&self,
username: &str,
) -> Request<'_, UserListStarred<'_>, (RepositoryListHeaders, Vec<Repository>)>
pub fn user_list_starred( &self, username: &str, ) -> Request<'_, UserListStarred<'_>, (RepositoryListHeaders, Vec<Repository>)>
The repos that the given user has starred
username: username of user
Sourcepub fn user_list_subscriptions(
&self,
username: &str,
) -> Request<'_, UserListSubscriptions<'_>, (RepositoryListHeaders, Vec<Repository>)>
pub fn user_list_subscriptions( &self, username: &str, ) -> Request<'_, UserListSubscriptions<'_>, (RepositoryListHeaders, Vec<Repository>)>
List the repositories watched by a user
username: username of the user
Sourcepub fn user_get_tokens(
&self,
username: &str,
) -> Request<'_, UserGetTokens<'_>, (AccessTokenListHeaders, Vec<AccessToken>)>
pub fn user_get_tokens( &self, username: &str, ) -> Request<'_, UserGetTokens<'_>, (AccessTokenListHeaders, Vec<AccessToken>)>
List the specified user’s access tokens
username: username of user
Sourcepub fn user_create_token(
&self,
username: &str,
body: CreateAccessTokenOption,
) -> Request<'_, UserCreateToken<'_>, AccessToken>
pub fn user_create_token( &self, username: &str, body: CreateAccessTokenOption, ) -> Request<'_, UserCreateToken<'_>, AccessToken>
Generate an access token for the specified user
username: username of userbody: SeeCreateAccessTokenOption
Sourcepub fn user_delete_access_token(
&self,
username: &str,
token: &str,
) -> Request<'_, UserDeleteAccessToken<'_>, ()>
pub fn user_delete_access_token( &self, username: &str, token: &str, ) -> Request<'_, UserDeleteAccessToken<'_>, ()>
Delete an access token from the specified user’s account
username: username of usertoken: token to be deleted, identified by ID and if not available by name
Sourcepub fn get_version(&self) -> Request<'_, GetVersion, ServerVersion>
pub fn get_version(&self) -> Request<'_, GetVersion, ServerVersion>
Returns the version of the running application
pub async fn download_release_attachment( &self, owner: &str, repo: &str, release: i64, attach: i64, ) -> Result<Bytes, ForgejoError>
Sourcepub async fn oauth_get_access_token(
&self,
body: OAuthTokenRequest<'_>,
) -> Result<OAuthToken, ForgejoError>
pub async fn oauth_get_access_token( &self, body: OAuthTokenRequest<'_>, ) -> Result<OAuthToken, ForgejoError>
Requests a new OAuth2 access token
More info at Forgejo’s docs.
pub async fn send_request( &self, request: &RawRequest, ) -> Result<ApiResponse, ForgejoError>
pub async fn hit_endpoint<E, R>(&self, endpoint: E) -> Result<R, ForgejoError>where
E: Endpoint,
R: FromResponse,
Trait Implementations§
Source§impl Deref for BergClient
impl Deref for BergClient
Auto Trait Implementations§
impl Freeze for BergClient
impl !RefUnwindSafe for BergClient
impl Send for BergClient
impl Sync for BergClient
impl Unpin for BergClient
impl !UnwindSafe for BergClient
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more