Files
octopush/crates/gitea_client/src/apis/defaults/repository.rs
Kasper Juul Hermansen 991861db99
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Rewrite rust (#38)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: https://git.front.kjuulh.io/kjuulh/octopush/pulls/38
2022-11-27 11:21:35 +00:00

1116 lines
30 KiB
Rust

use std::sync::Arc;
use async_trait::async_trait;
use gitea_raw_client::{
apis::{configuration::Configuration, repository_api::*, Error},
models,
};
use crate::apis::repository::Repository;
pub struct DefaultRepository {
conf: Arc<Configuration>,
}
impl DefaultRepository {
pub fn new(conf: Arc<Configuration>) -> Self {
Self { conf }
}
}
#[allow(dead_code, unused_variables)]
#[async_trait]
impl Repository for DefaultRepository {
async fn accept_transfer(
&self,
owner: &str,
repo: &str,
) -> Result<models::Repository, Error<AcceptRepoTransferError>> {
todo!("not implemented")
}
async fn create_current_user_repo(
&self,
body: Option<models::CreateRepoOption>,
) -> Result<models::Repository, Error<CreateCurrentUserRepoError>> {
todo!("not implemented")
}
async fn create_fork(
&self,
owner: &str,
repo: &str,
body: Option<models::CreateForkOption>,
) -> Result<models::Repository, Error<CreateForkError>> {
todo!("not implemented")
}
async fn generate_repo(
&self,
template_owner: &str,
template_repo: &str,
body: Option<models::GenerateRepoOption>,
) -> Result<models::Repository, Error<GenerateRepoError>> {
todo!("not implemented")
}
async fn get_annotated_tag(
&self,
owner: &str,
repo: &str,
sha: &str,
) -> Result<models::AnnotatedTag, Error<GetAnnotatedTagError>> {
todo!("not implemented")
}
async fn get_blob(
&self,
owner: &str,
repo: &str,
sha: &str,
) -> Result<models::GitBlobResponse, Error<GetBlobError>> {
todo!("not implemented")
}
async fn get_tree(
&self,
owner: &str,
repo: &str,
sha: &str,
recursive: Option<bool>,
page: Option<i32>,
per_page: Option<i32>,
) -> Result<models::GitTreeResponse, Error<GetTreeError>> {
todo!("not implemented")
}
async fn list_forks(
&self,
owner: &str,
repo: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::Repository>, Error<ListForksError>> {
todo!("not implemented")
}
async fn reject_transfer(
&self,
owner: &str,
repo: &str,
) -> Result<models::Repository, Error<RejectRepoTransferError>> {
todo!("not implemented")
}
async fn add_collaborator(
&self,
owner: &str,
repo: &str,
collaborator: &str,
body: Option<models::AddCollaboratorOption>,
) -> Result<(), Error<RepoAddCollaboratorError>> {
todo!("not implemented")
}
async fn add_team(
&self,
owner: &str,
repo: &str,
team: &str,
) -> Result<(), Error<RepoAddTeamError>> {
todo!("not implemented")
}
async fn add_topic(
&self,
owner: &str,
repo: &str,
topic: &str,
) -> Result<(), Error<RepoAddTopicError>> {
todo!("not implemented")
}
async fn apply_diff_patch(
&self,
owner: &str,
repo: &str,
body: models::UpdateFileOptions,
) -> Result<models::FileResponse, Error<RepoApplyDiffPatchError>> {
todo!("not implemented")
}
async fn cancel_scheduled_auto_merge(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Result<(), Error<RepoCancelScheduledAutoMergeError>> {
todo!("not implemented")
}
async fn check_collaborator(
&self,
owner: &str,
repo: &str,
collaborator: &str,
) -> Result<(), Error<RepoCheckCollaboratorError>> {
todo!("not implemented")
}
async fn check_team(
&self,
owner: &str,
repo: &str,
team: &str,
) -> Result<models::Team, Error<RepoCheckTeamError>> {
todo!("not implemented")
}
async fn create_branch(
&self,
owner: &str,
repo: &str,
body: Option<models::CreateBranchRepoOption>,
) -> Result<models::Branch, Error<RepoCreateBranchError>> {
todo!("not implemented")
}
async fn create_branch_protection(
&self,
owner: &str,
repo: &str,
body: Option<models::CreateBranchProtectionOption>,
) -> Result<models::BranchProtection, Error<RepoCreateBranchProtectionError>> {
todo!("not implemented")
}
async fn create_file(
&self,
owner: &str,
repo: &str,
filepath: &str,
body: models::CreateFileOptions,
) -> Result<models::FileResponse, Error<RepoCreateFileError>> {
todo!("not implemented")
}
async fn create_hook(
&self,
owner: &str,
repo: &str,
body: Option<models::CreateHookOption>,
) -> Result<models::Hook, Error<RepoCreateHookError>> {
todo!("not implemented")
}
async fn create_key(
&self,
owner: &str,
repo: &str,
body: Option<models::CreateKeyOption>,
) -> Result<models::DeployKey, Error<RepoCreateKeyError>> {
todo!("not implemented")
}
async fn create_pull_request(
&self,
owner: &str,
repo: &str,
body: Option<models::CreatePullRequestOption>,
) -> Result<models::PullRequest, Error<RepoCreatePullRequestError>> {
gitea_raw_client::apis::repository_api::repo_create_pull_request(
&self.conf, owner, repo, body,
)
.await
}
async fn create_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
body: models::CreatePullReviewOptions,
) -> Result<models::PullReview, Error<RepoCreatePullReviewError>> {
todo!("not implemented")
}
async fn create_pull_review_requests(
&self,
owner: &str,
repo: &str,
index: i64,
body: models::PullReviewRequestOptions,
) -> Result<Vec<models::PullReview>, Error<RepoCreatePullReviewRequestsError>> {
todo!("not implemented")
}
async fn create_release(
&self,
owner: &str,
repo: &str,
body: Option<models::CreateReleaseOption>,
) -> Result<models::Release, Error<RepoCreateReleaseError>> {
todo!("not implemented")
}
async fn create_release_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment: std::path::PathBuf,
name: Option<&str>,
) -> Result<models::Attachment, Error<RepoCreateReleaseAttachmentError>> {
todo!("not implemented")
}
async fn create_status(
&self,
owner: &str,
repo: &str,
sha: &str,
body: Option<models::CreateStatusOption>,
) -> Result<models::CommitStatus, Error<RepoCreateStatusError>> {
todo!("not implemented")
}
async fn create_tag(
&self,
owner: &str,
repo: &str,
body: Option<models::CreateTagOption>,
) -> Result<models::Tag, Error<RepoCreateTagError>> {
todo!("not implemented")
}
async fn create_wiki_page(
&self,
owner: &str,
repo: &str,
body: Option<models::CreateWikiPageOptions>,
) -> Result<models::WikiPage, Error<RepoCreateWikiPageError>> {
todo!("not implemented")
}
async fn delete(&self, owner: &str, repo: &str) -> Result<(), Error<RepoDeleteError>> {
todo!("not implemented")
}
async fn delete_branch(
&self,
owner: &str,
repo: &str,
branch: &str,
) -> Result<(), Error<RepoDeleteBranchError>> {
todo!("not implemented")
}
async fn delete_branch_protection(
&self,
owner: &str,
repo: &str,
name: &str,
) -> Result<(), Error<RepoDeleteBranchProtectionError>> {
todo!("not implemented")
}
async fn delete_collaborator(
&self,
owner: &str,
repo: &str,
collaborator: &str,
) -> Result<(), Error<RepoDeleteCollaboratorError>> {
todo!("not implemented")
}
async fn delete_file(
&self,
owner: &str,
repo: &str,
filepath: &str,
body: models::DeleteFileOptions,
) -> Result<models::FileDeleteResponse, Error<RepoDeleteFileError>> {
todo!("not implemented")
}
async fn delete_git_hook(
&self,
owner: &str,
repo: &str,
id: &str,
) -> Result<(), Error<RepoDeleteGitHookError>> {
todo!("not implemented")
}
async fn delete_hook(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Result<(), Error<RepoDeleteHookError>> {
todo!("not implemented")
}
async fn delete_key(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Result<(), Error<RepoDeleteKeyError>> {
todo!("not implemented")
}
async fn delete_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
) -> Result<(), Error<RepoDeletePullReviewError>> {
todo!("not implemented")
}
async fn delete_pull_review_requests(
&self,
owner: &str,
repo: &str,
index: i64,
body: models::PullReviewRequestOptions,
) -> Result<(), Error<RepoDeletePullReviewRequestsError>> {
todo!("not implemented")
}
async fn delete_release(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Result<(), Error<RepoDeleteReleaseError>> {
todo!("not implemented")
}
async fn delete_release_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment_id: i64,
) -> Result<(), Error<RepoDeleteReleaseAttachmentError>> {
todo!("not implemented")
}
async fn delete_release_by_tag(
&self,
owner: &str,
repo: &str,
tag: &str,
) -> Result<(), Error<RepoDeleteReleaseByTagError>> {
todo!("not implemented")
}
async fn delete_tag(
&self,
owner: &str,
repo: &str,
tag: &str,
) -> Result<(), Error<RepoDeleteTagError>> {
todo!("not implemented")
}
async fn delete_team(
&self,
owner: &str,
repo: &str,
team: &str,
) -> Result<(), Error<RepoDeleteTeamError>> {
todo!("not implemented")
}
async fn delete_topic(
&self,
owner: &str,
repo: &str,
topic: &str,
) -> Result<(), Error<RepoDeleteTopicError>> {
todo!("not implemented")
}
async fn delete_wiki_page(
&self,
owner: &str,
repo: &str,
page_name: &str,
) -> Result<(), Error<RepoDeleteWikiPageError>> {
todo!("not implemented")
}
async fn dismiss_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
body: models::DismissPullReviewOptions,
) -> Result<models::PullReview, Error<RepoDismissPullReviewError>> {
todo!("not implemented")
}
async fn download_commit_diff_or_patch(
&self,
owner: &str,
repo: &str,
sha: &str,
diff_type: &str,
) -> Result<String, Error<RepoDownloadCommitDiffOrPatchError>> {
todo!("not implemented")
}
async fn download_pull_diff_or_patch(
&self,
owner: &str,
repo: &str,
index: i64,
diff_type: &str,
binary: Option<bool>,
) -> Result<String, Error<RepoDownloadPullDiffOrPatchError>> {
todo!("not implemented")
}
async fn edit(
&self,
owner: &str,
repo: &str,
body: Option<models::EditRepoOption>,
) -> Result<models::Repository, Error<RepoEditError>> {
todo!("not implemented")
}
async fn edit_branch_protection(
&self,
owner: &str,
repo: &str,
name: &str,
body: Option<models::EditBranchProtectionOption>,
) -> Result<models::BranchProtection, Error<RepoEditBranchProtectionError>> {
todo!("not implemented")
}
async fn edit_git_hook(
&self,
owner: &str,
repo: &str,
id: &str,
body: Option<models::EditGitHookOption>,
) -> Result<models::GitHook, Error<RepoEditGitHookError>> {
todo!("not implemented")
}
async fn edit_hook(
&self,
owner: &str,
repo: &str,
id: i64,
body: Option<models::EditHookOption>,
) -> Result<models::Hook, Error<RepoEditHookError>> {
todo!("not implemented")
}
async fn edit_pull_request(
&self,
owner: &str,
repo: &str,
index: i64,
body: Option<models::EditPullRequestOption>,
) -> Result<models::PullRequest, Error<RepoEditPullRequestError>> {
todo!("not implemented")
}
async fn edit_release(
&self,
owner: &str,
repo: &str,
id: i64,
body: Option<models::EditReleaseOption>,
) -> Result<models::Release, Error<RepoEditReleaseError>> {
todo!("not implemented")
}
async fn edit_release_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment_id: i64,
body: Option<models::EditAttachmentOptions>,
) -> Result<models::Attachment, Error<RepoEditReleaseAttachmentError>> {
todo!("not implemented")
}
async fn edit_wiki_page(
&self,
owner: &str,
repo: &str,
page_name: &str,
body: Option<models::CreateWikiPageOptions>,
) -> Result<models::WikiPage, Error<RepoEditWikiPageError>> {
todo!("not implemented")
}
async fn get(
&self,
owner: &str,
repo: &str,
) -> Result<models::Repository, Error<RepoGetError>> {
gitea_raw_client::apis::repository_api::repo_get(&self.conf, owner, repo).await
}
async fn get_all_commits(
&self,
owner: &str,
repo: &str,
sha: Option<&str>,
path: Option<&str>,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::Commit>, Error<RepoGetAllCommitsError>> {
todo!("not implemented")
}
async fn get_archive(
&self,
owner: &str,
repo: &str,
archive: &str,
) -> Result<(), Error<RepoGetArchiveError>> {
todo!("not implemented")
}
async fn get_assignees(
&self,
owner: &str,
repo: &str,
) -> Result<Vec<models::User>, Error<RepoGetAssigneesError>> {
todo!("not implemented")
}
async fn get_branch(
&self,
owner: &str,
repo: &str,
branch: &str,
) -> Result<models::Branch, Error<RepoGetBranchError>> {
todo!("not implemented")
}
async fn get_branch_protection(
&self,
owner: &str,
repo: &str,
name: &str,
) -> Result<models::BranchProtection, Error<RepoGetBranchProtectionError>> {
todo!("not implemented")
}
async fn get_by_id(&self, id: i64) -> Result<models::Repository, Error<RepoGetByIdError>> {
todo!("not implemented")
}
async fn get_combined_status_by_ref(
&self,
owner: &str,
repo: &str,
r#ref: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<models::CombinedStatus, Error<RepoGetCombinedStatusByRefError>> {
todo!("not implemented")
}
async fn get_contents(
&self,
owner: &str,
repo: &str,
filepath: &str,
r#ref: Option<&str>,
) -> Result<models::ContentsResponse, Error<RepoGetContentsError>> {
todo!("not implemented")
}
async fn get_contents_list(
&self,
owner: &str,
repo: &str,
r#ref: Option<&str>,
) -> Result<Vec<models::ContentsResponse>, Error<RepoGetContentsListError>> {
todo!("not implemented")
}
async fn get_editor_config(
&self,
owner: &str,
repo: &str,
filepath: &str,
r#ref: Option<&str>,
) -> Result<(), Error<RepoGetEditorConfigError>> {
todo!("not implemented")
}
async fn get_git_hook(
&self,
owner: &str,
repo: &str,
id: &str,
) -> Result<models::GitHook, Error<RepoGetGitHookError>> {
todo!("not implemented")
}
async fn get_hook(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Result<models::Hook, Error<RepoGetHookError>> {
todo!("not implemented")
}
async fn get_issue_templates(
&self,
owner: &str,
repo: &str,
) -> Result<Vec<models::IssueTemplate>, Error<RepoGetIssueTemplatesError>> {
todo!("not implemented")
}
async fn get_key(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Result<models::DeployKey, Error<RepoGetKeyError>> {
todo!("not implemented")
}
async fn get_languages(
&self,
owner: &str,
repo: &str,
) -> Result<::std::collections::HashMap<String, i64>, Error<RepoGetLanguagesError>> {
todo!("not implemented")
}
async fn get_note(
&self,
owner: &str,
repo: &str,
sha: &str,
) -> Result<models::Note, Error<RepoGetNoteError>> {
todo!("not implemented")
}
async fn get_pull_request(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Result<models::PullRequest, Error<RepoGetPullRequestError>> {
todo!("not implemented")
}
async fn get_pull_request_commits(
&self,
owner: &str,
repo: &str,
index: i64,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::Commit>, Error<RepoGetPullRequestCommitsError>> {
todo!("not implemented")
}
async fn get_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
) -> Result<models::PullReview, Error<RepoGetPullReviewError>> {
todo!("not implemented")
}
async fn get_pull_review_comments(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
) -> Result<Vec<models::PullReviewComment>, Error<RepoGetPullReviewCommentsError>> {
todo!("not implemented")
}
async fn get_raw_file(
&self,
owner: &str,
repo: &str,
filepath: &str,
r#ref: Option<&str>,
) -> Result<(), Error<RepoGetRawFileError>> {
todo!("not implemented")
}
async fn get_raw_file_or_lfs(
&self,
owner: &str,
repo: &str,
filepath: &str,
r#ref: Option<&str>,
) -> Result<(), Error<RepoGetRawFileOrLfsError>> {
todo!("not implemented")
}
async fn get_release(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Result<models::Release, Error<RepoGetReleaseError>> {
todo!("not implemented")
}
async fn get_release_attachment(
&self,
owner: &str,
repo: &str,
id: i64,
attachment_id: i64,
) -> Result<models::Attachment, Error<RepoGetReleaseAttachmentError>> {
todo!("not implemented")
}
async fn get_release_by_tag(
&self,
owner: &str,
repo: &str,
tag: &str,
) -> Result<models::Release, Error<RepoGetReleaseByTagError>> {
todo!("not implemented")
}
async fn get_repo_permissions(
&self,
owner: &str,
repo: &str,
collaborator: &str,
) -> Result<models::RepoCollaboratorPermission, Error<RepoGetRepoPermissionsError>> {
todo!("not implemented")
}
async fn get_reviewers(
&self,
owner: &str,
repo: &str,
) -> Result<Vec<models::User>, Error<RepoGetReviewersError>> {
todo!("not implemented")
}
async fn get_single_commit(
&self,
owner: &str,
repo: &str,
sha: &str,
) -> Result<models::Commit, Error<RepoGetSingleCommitError>> {
todo!("not implemented")
}
async fn get_tag(
&self,
owner: &str,
repo: &str,
tag: &str,
) -> Result<models::Tag, Error<RepoGetTagError>> {
todo!("not implemented")
}
async fn get_wiki_page(
&self,
owner: &str,
repo: &str,
page_name: &str,
) -> Result<models::WikiPage, Error<RepoGetWikiPageError>> {
todo!("not implemented")
}
async fn get_wiki_page_revisions(
&self,
owner: &str,
repo: &str,
page_name: &str,
page: Option<i32>,
) -> Result<models::WikiCommitList, Error<RepoGetWikiPageRevisionsError>> {
todo!("not implemented")
}
async fn get_wiki_pages(
&self,
owner: &str,
repo: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::WikiPageMetaData>, Error<RepoGetWikiPagesError>> {
todo!("not implemented")
}
async fn list_all_git_refs(
&self,
owner: &str,
repo: &str,
) -> Result<Vec<models::Reference>, Error<RepoListAllGitRefsError>> {
todo!("not implemented")
}
async fn list_branch_protection(
&self,
owner: &str,
repo: &str,
) -> Result<Vec<models::BranchProtection>, Error<RepoListBranchProtectionError>> {
todo!("not implemented")
}
async fn list_branches(
&self,
owner: &str,
repo: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::Branch>, Error<RepoListBranchesError>> {
todo!("not implemented")
}
async fn list_collaborators(
&self,
owner: &str,
repo: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::User>, Error<RepoListCollaboratorsError>> {
todo!("not implemented")
}
async fn list_git_hooks(
&self,
owner: &str,
repo: &str,
) -> Result<Vec<models::GitHook>, Error<RepoListGitHooksError>> {
todo!("not implemented")
}
async fn list_git_refs(
&self,
owner: &str,
repo: &str,
r#ref: &str,
) -> Result<Vec<models::Reference>, Error<RepoListGitRefsError>> {
todo!("not implemented")
}
async fn list_hooks(
&self,
owner: &str,
repo: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::Hook>, Error<RepoListHooksError>> {
todo!("not implemented")
}
async fn list_keys(
&self,
owner: &str,
repo: &str,
key_id: Option<i32>,
fingerprint: Option<&str>,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::DeployKey>, Error<RepoListKeysError>> {
todo!("not implemented")
}
async fn list_pull_requests(
&self,
owner: &str,
repo: &str,
state: Option<&str>,
sort: Option<&str>,
milestone: Option<i64>,
labels: Option<Vec<i64>>,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::PullRequest>, Error<RepoListPullRequestsError>> {
todo!("not implemented")
}
async fn list_pull_reviews(
&self,
owner: &str,
repo: &str,
index: i64,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::PullReview>, Error<RepoListPullReviewsError>> {
todo!("not implemented")
}
async fn list_release_attachments(
&self,
owner: &str,
repo: &str,
id: i64,
) -> Result<Vec<models::Attachment>, Error<RepoListReleaseAttachmentsError>> {
todo!("not implemented")
}
async fn list_releases(
&self,
owner: &str,
repo: &str,
draft: Option<bool>,
pre_release: Option<bool>,
per_page: Option<i32>,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::Release>, Error<RepoListReleasesError>> {
todo!("not implemented")
}
async fn list_stargazers(
&self,
owner: &str,
repo: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::User>, Error<RepoListStargazersError>> {
todo!("not implemented")
}
async fn list_statuses(
&self,
owner: &str,
repo: &str,
sha: &str,
sort: Option<&str>,
state: Option<&str>,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::CommitStatus>, Error<RepoListStatusesError>> {
todo!("not implemented")
}
async fn list_statuses_by_ref(
&self,
owner: &str,
repo: &str,
r#ref: &str,
sort: Option<&str>,
state: Option<&str>,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::CommitStatus>, Error<RepoListStatusesByRefError>> {
todo!("not implemented")
}
async fn list_subscribers(
&self,
owner: &str,
repo: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::User>, Error<RepoListSubscribersError>> {
todo!("not implemented")
}
async fn list_tags(
&self,
owner: &str,
repo: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::Tag>, Error<RepoListTagsError>> {
todo!("not implemented")
}
async fn list_teams(
&self,
owner: &str,
repo: &str,
) -> Result<Vec<models::Team>, Error<RepoListTeamsError>> {
todo!("not implemented")
}
async fn list_topics(
&self,
owner: &str,
repo: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<models::TopicName, Error<RepoListTopicsError>> {
todo!("not implemented")
}
async fn merge_pull_request(
&self,
owner: &str,
repo: &str,
index: i64,
body: Option<models::MergePullRequestOption>,
) -> Result<(), Error<RepoMergePullRequestError>> {
todo!("not implemented")
}
async fn migrate(
&self,
body: Option<models::MigrateRepoOptions>,
) -> Result<models::Repository, Error<RepoMigrateError>> {
todo!("not implemented")
}
async fn mirror_sync(&self, owner: &str, repo: &str) -> Result<(), Error<RepoMirrorSyncError>> {
todo!("not implemented")
}
async fn pull_request_is_merged(
&self,
owner: &str,
repo: &str,
index: i64,
) -> Result<(), Error<RepoPullRequestIsMergedError>> {
todo!("not implemented")
}
async fn search(
&self,
q: Option<&str>,
topic: Option<bool>,
include_desc: Option<bool>,
uid: Option<i64>,
priority_owner_id: Option<i64>,
team_id: Option<i64>,
starred_by: Option<i64>,
private: Option<bool>,
is_private: Option<bool>,
template: Option<bool>,
archived: Option<bool>,
mode: Option<&str>,
exclusive: Option<bool>,
sort: Option<&str>,
order: Option<&str>,
page: Option<i32>,
limit: Option<i32>,
) -> Result<models::SearchResults, Error<RepoSearchError>> {
todo!("not implemented")
}
async fn signing_key(
&self,
owner: &str,
repo: &str,
) -> Result<String, Error<RepoSigningKeyError>> {
todo!("not implemented")
}
async fn submit_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
body: models::SubmitPullReviewOptions,
) -> Result<models::PullReview, Error<RepoSubmitPullReviewError>> {
todo!("not implemented")
}
async fn test_hook(
&self,
owner: &str,
repo: &str,
id: i64,
r#ref: Option<&str>,
) -> Result<(), Error<RepoTestHookError>> {
todo!("not implemented")
}
async fn tracked_times(
&self,
owner: &str,
repo: &str,
user: Option<&str>,
since: Option<String>,
before: Option<String>,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::TrackedTime>, Error<RepoTrackedTimesError>> {
todo!("not implemented")
}
async fn transfer(
&self,
owner: &str,
repo: &str,
body: models::TransferRepoOption,
) -> Result<models::Repository, Error<RepoTransferError>> {
todo!("not implemented")
}
async fn un_dismiss_pull_review(
&self,
owner: &str,
repo: &str,
index: i64,
id: i64,
) -> Result<models::PullReview, Error<RepoUnDismissPullReviewError>> {
todo!("not implemented")
}
async fn update_file(
&self,
owner: &str,
repo: &str,
filepath: &str,
body: models::UpdateFileOptions,
) -> Result<models::FileResponse, Error<RepoUpdateFileError>> {
todo!("not implemented")
}
async fn update_pull_request(
&self,
owner: &str,
repo: &str,
index: i64,
style: Option<&str>,
) -> Result<(), Error<RepoUpdatePullRequestError>> {
todo!("not implemented")
}
async fn update_topics(
&self,
owner: &str,
repo: &str,
body: Option<models::RepoTopicOptions>,
) -> Result<(), Error<RepoUpdateTopicsError>> {
todo!("not implemented")
}
async fn topic_search(
&self,
q: &str,
page: Option<i32>,
limit: Option<i32>,
) -> Result<Vec<models::TopicResponse>, Error<TopicSearchError>> {
todo!("not implemented")
}
async fn user_current_check_subscription(
&self,
owner: &str,
repo: &str,
) -> Result<models::WatchInfo, Error<UserCurrentCheckSubscriptionError>> {
todo!("not implemented")
}
async fn user_current_delete_subscription(
&self,
owner: &str,
repo: &str,
) -> Result<(), Error<UserCurrentDeleteSubscriptionError>> {
todo!("not implemented")
}
async fn user_current_put_subscription(
&self,
owner: &str,
repo: &str,
) -> Result<models::WatchInfo, Error<UserCurrentPutSubscriptionError>> {
todo!("not implemented")
}
async fn user_tracked_times(
&self,
owner: &str,
repo: &str,
user: &str,
) -> Result<Vec<models::TrackedTime>, Error<UserTrackedTimesError>> {
todo!("not implemented")
}
}