diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-02-10 04:49:32 +0100 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-02-10 04:49:32 +0100 |
commit | ed27e3d71400761c442903bcf8c0f85898c6ea97 (patch) | |
tree | 3795991f1fae458c0367e2bcd39ea70a7de8c901 /src | |
parent | format (diff) | |
download | forgejo-api-ed27e3d71400761c442903bcf8c0f85898c6ea97.tar.xz forgejo-api-ed27e3d71400761c442903bcf8c0f85898c6ea97.zip |
remove trailing doc comment lines
Diffstat (limited to 'src')
-rw-r--r-- | src/generated.rs | 642 |
1 files changed, 0 insertions, 642 deletions
diff --git a/src/generated.rs b/src/generated.rs index 05b147c..a1475a5 100644 --- a/src/generated.rs +++ b/src/generated.rs @@ -7225,7 +7225,6 @@ use structs::*; pub mod structs { use crate::StructureError; /// APIError is an api error with a message - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct APIError { pub message: Option<String>, @@ -7261,7 +7260,6 @@ pub mod structs { } /// ActivityPub type - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ActivityPub { #[serde(rename = "@context")] @@ -7269,28 +7267,23 @@ pub mod structs { } /// AddCollaboratorOption options when adding a user as a collaborator of a repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct AddCollaboratorOption { pub permission: Option<String>, } /// AddTimeOption options for adding time to an issue - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct AddTimeOption { #[serde(with = "time::serde::rfc3339::option")] pub created: Option<time::OffsetDateTime>, /// time in seconds - /// pub time: u64, /// User who spent the time (optional) - /// pub user_name: Option<String>, } /// AnnotatedTag represents an annotated tag - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct AnnotatedTag { pub message: Option<String>, @@ -7304,7 +7297,6 @@ pub mod structs { } /// AnnotatedTagObject contains meta information of the tag object - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct AnnotatedTagObject { pub sha: Option<String>, @@ -7315,7 +7307,6 @@ pub mod structs { } /// Attachment a generic attachment - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Attachment { #[serde(deserialize_with = "crate::none_if_blank_url")] @@ -7337,7 +7328,6 @@ pub mod structs { } /// Branch represents a repository branch - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Branch { pub commit: Option<PayloadCommit>, @@ -7352,7 +7342,6 @@ pub mod structs { } /// BranchProtection represents a branch protection for a repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct BranchProtection { pub approvals_whitelist_teams: Option<Vec<String>>, @@ -7361,7 +7350,6 @@ pub mod structs { pub block_on_outdated_branch: Option<bool>, pub block_on_rejected_reviews: Option<bool>, /// Deprecated: true - /// pub branch_name: Option<String>, #[serde(with = "time::serde::rfc3339::option")] pub created_at: Option<time::OffsetDateTime>, @@ -7387,28 +7375,21 @@ pub mod structs { } /// ChangeFileOperation for creating, updating or deleting a file - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ChangeFileOperation { /// new or updated file content, must be base64 encoded - /// pub content: Option<String>, /// old path of the file to move - /// pub from_path: Option<String>, /// indicates what to do with the file - /// pub operation: ChangeFileOperationOperation, /// path to the existing or new file - /// pub path: String, /// sha is the SHA for the file that already exists, required for update or delete - /// pub sha: Option<String>, } /// indicates what to do with the file - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub enum ChangeFileOperationOperation { @@ -7429,31 +7410,24 @@ pub mod structs { /// ChangeFilesOptions options for creating, updating or deleting multiple files /// /// Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used) - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ChangeFilesOptions { pub author: Option<Identity>, /// branch (optional) to base this file from. if not given, the default branch is used - /// pub branch: Option<String>, pub committer: Option<Identity>, pub dates: Option<CommitDateOptions>, /// list of file operations - /// pub files: Vec<ChangeFileOperation>, /// message (optional) for the commit of this file. if not supplied, a default message will be used - /// pub message: Option<String>, /// new_branch (optional) will make a new branch from `branch` before creating the file - /// pub new_branch: Option<String>, /// Add a Signed-off-by trailer by the committer at the end of the commit log message. - /// pub signoff: Option<bool>, } /// ChangedFile store information about files affected by the pull request - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ChangedFile { pub additions: Option<u64>, @@ -7471,7 +7445,6 @@ pub mod structs { } /// CombinedStatus holds the combined state of several statuses for a single commit - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CombinedStatus { #[serde(deserialize_with = "crate::none_if_blank_url")] @@ -7486,7 +7459,6 @@ pub mod structs { } /// Comment represents a comment on a commit or issue - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Comment { pub assets: Option<Vec<Attachment>>, @@ -7525,7 +7497,6 @@ pub mod structs { } /// CommitAffectedFiles store information about files affected by the commit - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CommitAffectedFiles { pub filename: Option<String>, @@ -7533,7 +7504,6 @@ pub mod structs { } /// CommitDateOptions store dates for GIT_AUTHOR_DATE and GIT_COMMITTER_DATE - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CommitDateOptions { #[serde(with = "time::serde::rfc3339::option")] @@ -7552,7 +7522,6 @@ pub mod structs { } /// CommitStats is statistics for a RepoCommit - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CommitStats { pub additions: Option<u64>, @@ -7561,7 +7530,6 @@ pub mod structs { } /// CommitStatus holds a single status of a single Commit - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CommitStatus { pub context: Option<String>, @@ -7582,7 +7550,6 @@ pub mod structs { /// CommitStatusState holds the state of a CommitStatus /// /// It can be "pending", "success", "error" and "failure" - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CommitStatusState {} @@ -7594,18 +7561,15 @@ pub mod structs { } /// ContentsResponse contains information about a repo's entry's (dir, file, symlink, submodule) metadata and content - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ContentsResponse { #[serde(rename = "_links")] pub links: Option<FileLinksResponse>, /// `content` is populated when `type` is `file`, otherwise null - /// pub content: Option<String>, #[serde(deserialize_with = "crate::none_if_blank_url")] pub download_url: Option<url::Url>, /// `encoding` is populated when `type` is `file`, otherwise null - /// pub encoding: Option<String>, #[serde(deserialize_with = "crate::none_if_blank_url")] pub git_url: Option<url::Url>, @@ -7618,13 +7582,10 @@ pub mod structs { pub size: Option<u64>, #[serde(deserialize_with = "crate::none_if_blank_url")] /// `submodule_git_url` is populated when `type` is `submodule`, otherwise null - /// pub submodule_git_url: Option<url::Url>, /// `target` is populated when `type` is `symlink`, otherwise null - /// pub target: Option<String>, /// `type` will be `file`, `dir`, `symlink`, or `submodule` - /// #[serde(rename = "type")] pub r#type: Option<String>, #[serde(deserialize_with = "crate::none_if_blank_url")] @@ -7632,7 +7593,6 @@ pub mod structs { } /// CreateAccessTokenOption options when create access token - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateAccessTokenOption { pub name: String, @@ -7640,7 +7600,6 @@ pub mod structs { } /// CreateBranchProtectionOption options for creating a branch protection - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateBranchProtectionOption { pub approvals_whitelist_teams: Option<Vec<String>>, @@ -7649,7 +7608,6 @@ pub mod structs { pub block_on_outdated_branch: Option<bool>, pub block_on_rejected_reviews: Option<bool>, /// Deprecated: true - /// pub branch_name: Option<String>, pub dismiss_stale_approvals: Option<bool>, pub enable_approvals_whitelist: Option<bool>, @@ -7671,81 +7629,63 @@ pub mod structs { } /// CreateBranchRepoOption options when creating a branch in a repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateBranchRepoOption { /// Name of the branch to create - /// pub new_branch_name: String, /// Deprecated: true /// /// Name of the old branch to create from - /// pub old_branch_name: Option<String>, /// Name of the old branch/tag/commit to create from - /// pub old_ref_name: Option<String>, } /// CreateEmailOption options when creating email addresses - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateEmailOption { /// email addresses to add - /// pub emails: Option<Vec<String>>, } /// CreateFileOptions options for creating files /// /// Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used) - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateFileOptions { pub author: Option<Identity>, /// branch (optional) to base this file from. if not given, the default branch is used - /// pub branch: Option<String>, pub committer: Option<Identity>, /// content must be base64 encoded - /// pub content: String, pub dates: Option<CommitDateOptions>, /// message (optional) for the commit of this file. if not supplied, a default message will be used - /// pub message: Option<String>, /// new_branch (optional) will make a new branch from `branch` before creating the file - /// pub new_branch: Option<String>, /// Add a Signed-off-by trailer by the committer at the end of the commit log message. - /// pub signoff: Option<bool>, } /// CreateForkOption options for creating a fork - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateForkOption { /// name of the forked repository - /// pub name: Option<String>, /// organization name, if forking into an organization - /// pub organization: Option<String>, } /// CreateGPGKeyOption options create user GPG key - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateGPGKeyOption { /// An armored GPG key to add - /// pub armored_public_key: String, pub armored_signature: Option<String>, } /// CreateHookOption options when create a hook - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateHookOption { pub active: Option<bool>, @@ -7792,7 +7732,6 @@ pub mod structs { /// CreateHookOptionConfig has all config options in it /// /// required are "content_type" and "url" Required - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateHookOptionConfig { #[serde(flatten)] @@ -7800,7 +7739,6 @@ pub mod structs { } /// CreateIssueCommentOption options for creating a comment on an issue - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateIssueCommentOption { pub body: String, @@ -7809,11 +7747,9 @@ pub mod structs { } /// CreateIssueOption options to create one issue - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateIssueOption { /// deprecated - /// pub assignee: Option<String>, pub assignees: Option<Vec<String>>, pub body: Option<String>, @@ -7821,10 +7757,8 @@ pub mod structs { #[serde(with = "time::serde::rfc3339::option")] pub due_date: Option<time::OffsetDateTime>, /// list of label ids - /// pub labels: Option<Vec<u64>>, /// milestone id - /// pub milestone: Option<u64>, #[serde(rename = "ref")] pub r#ref: Option<String>, @@ -7832,22 +7766,17 @@ pub mod structs { } /// CreateKeyOption options when creating a key - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateKeyOption { /// An armored SSH key to add - /// pub key: String, /// Describe if the key has only read access or read/write - /// pub read_only: Option<bool>, /// Title of the key to add - /// pub title: String, } /// CreateLabelOption options for creating a label - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateLabelOption { pub color: String, @@ -7858,7 +7787,6 @@ pub mod structs { } /// CreateMilestoneOption options for creating a milestone - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateMilestoneOption { pub description: Option<String>, @@ -7883,7 +7811,6 @@ pub mod structs { } } /// CreateOAuth2ApplicationOptions holds options to create an oauth2 application - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateOAuth2ApplicationOptions { pub confidential_client: Option<bool>, @@ -7892,16 +7819,13 @@ pub mod structs { } /// CreateOrUpdateSecretOption options when creating or updating secret - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateOrUpdateSecretOption { /// Data of the secret to update - /// pub data: String, } /// CreateOrgOption options for creating an organization - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateOrgOption { pub description: Option<String>, @@ -7911,13 +7835,11 @@ pub mod structs { pub repo_admin_change_team_access: Option<bool>, pub username: String, /// possible values are `public` (default), `limited` or `private` - /// pub visibility: Option<CreateOrgOptionVisibility>, pub website: Option<String>, } /// possible values are `public` (default), `limited` or `private` - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub enum CreateOrgOptionVisibility { @@ -7936,7 +7858,6 @@ pub mod structs { } } /// CreatePullRequestOption options when creating a pull request - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreatePullRequestOption { pub assignee: Option<String>, @@ -7952,23 +7873,18 @@ pub mod structs { } /// CreatePullReviewComment represent a review comment for creation api - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreatePullReviewComment { pub body: Option<String>, /// if comment to new file line or 0 - /// pub new_position: Option<u64>, /// if comment to old file line or 0 - /// pub old_position: Option<u64>, /// the tree path - /// pub path: Option<String>, } /// CreatePullReviewOptions are options to create a pull review - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreatePullReviewOptions { pub body: Option<String>, @@ -7987,7 +7903,6 @@ pub mod structs { } /// CreateReleaseOption options when creating a release - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateReleaseOption { pub body: Option<String>, @@ -7999,46 +7914,33 @@ pub mod structs { } /// CreateRepoOption options when creating repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateRepoOption { /// Whether the repository should be auto-initialized? - /// pub auto_init: Option<bool>, /// DefaultBranch of the repository (used when initializes and in template) - /// pub default_branch: Option<String>, /// Description of the repository to create - /// pub description: Option<String>, /// Gitignores to use - /// pub gitignores: Option<String>, /// Label-Set to use - /// pub issue_labels: Option<String>, /// License to use - /// pub license: Option<String>, /// Name of the repository to create - /// pub name: String, /// Whether the repository is private - /// pub private: Option<bool>, /// Readme of the repository to create - /// pub readme: Option<String>, /// Whether the repository is template - /// pub template: Option<bool>, /// TrustModel of the repository - /// pub trust_model: Option<CreateRepoOptionTrustModel>, } /// TrustModel of the repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub enum CreateRepoOptionTrustModel { @@ -8059,7 +7961,6 @@ pub mod structs { } } /// CreateStatusOption holds the information needed to create a new CommitStatus for a Commit - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateStatusOption { pub context: Option<String>, @@ -8070,7 +7971,6 @@ pub mod structs { } /// CreateTagOption options when creating a tag - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateTagOption { pub message: Option<String>, @@ -8079,7 +7979,6 @@ pub mod structs { } /// CreateTeamOption options for creating a team - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateTeamOption { pub can_create_org_repo: Option<bool>, @@ -8114,7 +8013,6 @@ pub mod structs { } /// CreateUserOption create user options - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateUserOption { #[serde(with = "time::serde::rfc3339::option")] @@ -8123,7 +8021,6 @@ pub mod structs { /// migrated from other systems. When omitted, the user's creation timestamp /// /// will be set to "now". - /// pub created_at: Option<time::OffsetDateTime>, pub email: String, pub full_name: Option<String>, @@ -8138,22 +8035,17 @@ pub mod structs { } /// CreateWikiPageOptions form for creating wiki - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateWikiPageOptions { /// content must be base64 encoded - /// pub content_base64: Option<String>, /// optional commit message summarizing the change - /// pub message: Option<String>, /// page title. leave empty to keep unchanged - /// pub title: Option<String>, } /// Cron represents a Cron task - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Cron { pub exec_times: Option<u64>, @@ -8166,42 +8058,33 @@ pub mod structs { } /// DeleteEmailOption options when deleting email addresses - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct DeleteEmailOption { /// email addresses to delete - /// pub emails: Option<Vec<String>>, } /// DeleteFileOptions options for deleting files (used for other File structs below) /// /// Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used) - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct DeleteFileOptions { pub author: Option<Identity>, /// branch (optional) to base this file from. if not given, the default branch is used - /// pub branch: Option<String>, pub committer: Option<Identity>, pub dates: Option<CommitDateOptions>, /// message (optional) for the commit of this file. if not supplied, a default message will be used - /// pub message: Option<String>, /// new_branch (optional) will make a new branch from `branch` before creating the file - /// pub new_branch: Option<String>, /// sha is the SHA for the file that already exists - /// pub sha: String, /// Add a Signed-off-by trailer by the committer at the end of the commit log message. - /// pub signoff: Option<bool>, } /// DeleteLabelOption options for deleting a label - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct DeleteLabelsOption { #[serde(with = "time::serde::rfc3339::option")] @@ -8209,7 +8092,6 @@ pub mod structs { } /// DeployKey a deploy key - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct DeployKey { #[serde(with = "time::serde::rfc3339::option")] @@ -8226,7 +8108,6 @@ pub mod structs { } /// DismissPullReviewOptions are options to dismiss a pull review - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct DismissPullReviewOptions { pub message: Option<String>, @@ -8234,14 +8115,12 @@ pub mod structs { } /// EditAttachmentOptions options for editing attachments - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditAttachmentOptions { pub name: Option<String>, } /// EditBranchProtectionOption options for editing a branch protection - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditBranchProtectionOption { pub approvals_whitelist_teams: Option<Vec<String>>, @@ -8268,7 +8147,6 @@ pub mod structs { } /// EditDeadlineOption options for creating a deadline - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditDeadlineOption { #[serde(with = "time::serde::rfc3339")] @@ -8276,14 +8154,12 @@ pub mod structs { } /// EditGitHookOption options when modifying one Git hook - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditGitHookOption { pub content: Option<String>, } /// EditHookOption options when modify one hook - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditHookOption { pub active: Option<bool>, @@ -8300,7 +8176,6 @@ pub mod structs { } /// EditIssueCommentOption options for editing a comment - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditIssueCommentOption { pub body: String, @@ -8309,11 +8184,9 @@ pub mod structs { } /// EditIssueOption options for editing an issue - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditIssueOption { /// deprecated - /// pub assignee: Option<String>, pub assignees: Option<Vec<String>>, pub body: Option<String>, @@ -8330,7 +8203,6 @@ pub mod structs { } /// EditLabelOption options for editing a label - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditLabelOption { pub color: Option<String>, @@ -8341,7 +8213,6 @@ pub mod structs { } /// EditMilestoneOption options for editing a milestone - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditMilestoneOption { pub description: Option<String>, @@ -8352,7 +8223,6 @@ pub mod structs { } /// EditOrgOption options for editing an organization - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditOrgOption { pub description: Option<String>, @@ -8361,13 +8231,11 @@ pub mod structs { pub location: Option<String>, pub repo_admin_change_team_access: Option<bool>, /// possible values are `public`, `limited` or `private` - /// pub visibility: Option<EditOrgOptionVisibility>, pub website: Option<String>, } /// possible values are `public`, `limited` or `private` - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub enum EditOrgOptionVisibility { @@ -8386,7 +8254,6 @@ pub mod structs { } } /// EditPullRequestOption options when modify pull request - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditPullRequestOption { pub allow_maintainer_edit: Option<bool>, @@ -8404,14 +8271,12 @@ pub mod structs { } /// EditReactionOption contain the reaction type - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditReactionOption { pub content: Option<String>, } /// EditReleaseOption options when editing a release - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditReleaseOption { pub body: Option<String>, @@ -8423,101 +8288,72 @@ pub mod structs { } /// EditRepoOption options when editing a repository's properties - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditRepoOption { /// either `true` to allow mark pr as merged manually, or `false` to prevent it. - /// pub allow_manual_merge: Option<bool>, /// either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - /// pub allow_merge_commits: Option<bool>, /// either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - /// pub allow_rebase: Option<bool>, /// either `true` to allow rebase with explicit merge commits (--no-ff), or `false` to prevent rebase with explicit merge commits. - /// pub allow_rebase_explicit: Option<bool>, /// either `true` to allow updating pull request branch by rebase, or `false` to prevent it. - /// pub allow_rebase_update: Option<bool>, /// either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - /// pub allow_squash_merge: Option<bool>, /// set to `true` to archive this repository. - /// pub archived: Option<bool>, /// either `true` to enable AutodetectManualMerge, or `false` to prevent it. Note: In some special cases, misjudgments can occur. - /// pub autodetect_manual_merge: Option<bool>, /// set to `true` to allow edits from maintainers by default - /// pub default_allow_maintainer_edit: Option<bool>, /// sets the default branch for this repository. - /// pub default_branch: Option<String>, /// set to `true` to delete pr branch after merge by default - /// pub default_delete_branch_after_merge: Option<bool>, /// set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", or "squash". - /// pub default_merge_style: Option<String>, /// a short description of the repository. - /// pub description: Option<String>, /// enable prune - remove obsolete remote-tracking references - /// pub enable_prune: Option<bool>, pub external_tracker: Option<ExternalTracker>, pub external_wiki: Option<ExternalWiki>, /// either `true` to enable actions unit, or `false` to disable them. - /// pub has_actions: Option<bool>, /// either `true` to enable issues for this repository or `false` to disable them. - /// pub has_issues: Option<bool>, /// either `true` to enable packages unit, or `false` to disable them. - /// pub has_packages: Option<bool>, /// either `true` to enable project unit, or `false` to disable them. - /// pub has_projects: Option<bool>, /// either `true` to allow pull requests, or `false` to prevent pull request. - /// pub has_pull_requests: Option<bool>, /// either `true` to enable releases unit, or `false` to disable them. - /// pub has_releases: Option<bool>, /// either `true` to enable the wiki for this repository or `false` to disable it. - /// pub has_wiki: Option<bool>, /// either `true` to ignore whitespace for conflicts, or `false` to not ignore whitespace. - /// pub ignore_whitespace_conflicts: Option<bool>, pub internal_tracker: Option<InternalTracker>, /// set to a string like `8h30m0s` to set the mirror interval time - /// pub mirror_interval: Option<String>, /// name of the repository - /// pub name: Option<String>, /// either `true` to make the repository private or `false` to make it public. /// /// Note: you will get a 422 error if the organization restricts changing repository visibility to organization /// /// owners and a non-owner tries to change the value of private. - /// pub private: Option<bool>, /// either `true` to make this repository a template or `false` to make it a normal repository - /// pub template: Option<bool>, /// a URL with more information about the repository. - /// pub website: Option<String>, } /// EditTeamOption options for editing a team - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditTeamOption { pub can_create_org_repo: Option<bool>, @@ -8552,7 +8388,6 @@ pub mod structs { } /// EditUserOption edit user options - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct EditUserOption { pub active: Option<bool>, @@ -8576,7 +8411,6 @@ pub mod structs { } /// Email an email address belonging to a user - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Email { pub email: Option<String>, @@ -8587,31 +8421,24 @@ pub mod structs { } /// ExternalTracker represents settings for external tracker - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ExternalTracker { /// External Issue Tracker URL Format. Use the placeholders {user}, {repo} and {index} for the username, repository name and issue index. - /// pub external_tracker_format: Option<String>, /// External Issue Tracker issue regular expression - /// pub external_tracker_regexp_pattern: Option<String>, /// External Issue Tracker Number Format, either `numeric`, `alphanumeric`, or `regexp` - /// pub external_tracker_style: Option<String>, #[serde(deserialize_with = "crate::none_if_blank_url")] /// URL of external issue tracker. - /// pub external_tracker_url: Option<url::Url>, } /// ExternalWiki represents setting for external wiki - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ExternalWiki { #[serde(deserialize_with = "crate::none_if_blank_url")] /// URL of external wiki. - /// pub external_wiki_url: Option<url::Url>, } @@ -8632,7 +8459,6 @@ pub mod structs { } /// FileDeleteResponse contains information about a repo's file that was deleted - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct FileDeleteResponse { pub commit: Option<FileCommitResponse>, @@ -8641,7 +8467,6 @@ pub mod structs { } /// FileLinksResponse contains the links for a repo's file - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct FileLinksResponse { pub git: Option<String>, @@ -8651,7 +8476,6 @@ pub mod structs { } /// FileResponse contains information about a repo's file - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct FileResponse { pub commit: Option<FileCommitResponse>, @@ -8660,7 +8484,6 @@ pub mod structs { } /// FilesResponse contains information about multiple files from a repo - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct FilesResponse { pub commit: Option<FileCommitResponse>, @@ -8669,7 +8492,6 @@ pub mod structs { } /// GPGKey a user GPG key to sign commit and tag in repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GPGKey { pub can_certify: Option<bool>, @@ -8690,7 +8512,6 @@ pub mod structs { } /// GPGKeyEmail an email attached to a GPGKey - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GPGKeyEmail { pub email: Option<String>, @@ -8698,7 +8519,6 @@ pub mod structs { } /// GeneralAPISettings contains global api settings exposed by it - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GeneralAPISettings { pub default_git_trees_per_page: Option<u64>, @@ -8708,7 +8528,6 @@ pub mod structs { } /// GeneralAttachmentSettings contains global Attachment settings exposed by API - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GeneralAttachmentSettings { pub allowed_types: Option<String>, @@ -8718,7 +8537,6 @@ pub mod structs { } /// GeneralRepoSettings contains global repository settings exposed by API - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GeneralRepoSettings { pub http_git_disabled: Option<bool>, @@ -8730,7 +8548,6 @@ pub mod structs { } /// GeneralUISettings contains global ui settings exposed by API - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GeneralUISettings { pub allowed_reactions: Option<Vec<String>>, @@ -8739,49 +8556,35 @@ pub mod structs { } /// GenerateRepoOption options when creating repository using a template - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GenerateRepoOption { /// include avatar of the template repo - /// pub avatar: Option<bool>, /// Default branch of the new repository - /// pub default_branch: Option<String>, /// Description of the repository to create - /// pub description: Option<String>, /// include git content of default branch in template repo - /// pub git_content: Option<bool>, /// include git hooks in template repo - /// pub git_hooks: Option<bool>, /// include labels in template repo - /// pub labels: Option<bool>, /// Name of the repository to create - /// pub name: String, /// The organization or person who will own the new repository - /// pub owner: String, /// Whether the repository is private - /// pub private: Option<bool>, /// include protected branches in template repo - /// pub protected_branch: Option<bool>, /// include topics in template repo - /// pub topics: Option<bool>, /// include webhooks in template repo - /// pub webhooks: Option<bool>, } /// GitBlobResponse represents a git blob - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GitBlobResponse { pub content: Option<String>, @@ -8793,7 +8596,6 @@ pub mod structs { } /// GitEntry represents a git tree - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GitEntry { pub mode: Option<String>, @@ -8807,7 +8609,6 @@ pub mod structs { } /// GitHook represents a Git repository hook - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GitHook { pub content: Option<String>, @@ -8825,7 +8626,6 @@ pub mod structs { } /// GitTreeResponse returns a git tree - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GitTreeResponse { pub page: Option<u64>, @@ -8838,7 +8638,6 @@ pub mod structs { } /// GitignoreTemplateInfo name and text of a gitignore template - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct GitignoreTemplateInfo { pub name: Option<String>, @@ -8846,7 +8645,6 @@ pub mod structs { } /// Hook a hook is a web hook when one repository changed - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Hook { pub active: Option<bool>, @@ -8870,7 +8668,6 @@ pub mod structs { } /// Identity for a person's identity like an author or committer - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Identity { pub email: Option<String>, @@ -8878,22 +8675,17 @@ pub mod structs { } /// InternalTracker represents settings for internal tracker - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct InternalTracker { /// Let only contributors track time (Built-in issue tracker) - /// pub allow_only_contributors_to_track_time: Option<bool>, /// Enable dependencies for issues and pull requests (Built-in issue tracker) - /// pub enable_issue_dependencies: Option<bool>, /// Enable time tracking (Built-in issue tracker) - /// pub enable_time_tracker: Option<bool>, } /// Issue represents an issue in a repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Issue { pub assets: Option<Vec<Attachment>>, @@ -8951,7 +8743,6 @@ pub mod structs { } /// IssueDeadline represents an issue deadline - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct IssueDeadline { #[serde(with = "time::serde::rfc3339::option")] @@ -8959,7 +8750,6 @@ pub mod structs { } /// IssueFormField represents a form field - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct IssueFormField { pub attributes: Option<IssueFormFieldAttributes>, @@ -8985,18 +8775,15 @@ pub mod structs { pub struct IssueFormFieldType {} /// IssueLabelsOption a collection of labels - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct IssueLabelsOption { /// list of label IDs - /// pub labels: Option<Vec<u64>>, #[serde(with = "time::serde::rfc3339::option")] pub updated_at: Option<time::OffsetDateTime>, } /// IssueMeta basic issue information - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct IssueMeta { pub index: Option<u64>, @@ -9005,7 +8792,6 @@ pub mod structs { } /// IssueTemplate represents an issue template for a repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct IssueTemplate { pub about: Option<String>, @@ -9020,7 +8806,6 @@ pub mod structs { } /// Label a label to an issue or a pr - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Label { pub color: Option<String>, @@ -9034,7 +8819,6 @@ pub mod structs { } /// LabelTemplate info of a Label template - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct LabelTemplate { pub color: Option<String>, @@ -9044,7 +8828,6 @@ pub mod structs { } /// LicensesInfo contains information about a License - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct LicenseTemplateInfo { pub body: Option<String>, @@ -9056,7 +8839,6 @@ pub mod structs { } /// LicensesListEntry is used for the API - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct LicensesTemplateListEntry { pub key: Option<String>, @@ -9066,7 +8848,6 @@ pub mod structs { } /// MarkdownOption markdown options - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct MarkdownOption { /// Context to render @@ -9074,7 +8855,6 @@ pub mod structs { /// /// /// in: body - /// #[serde(rename = "Context")] pub context: Option<String>, /// Mode to render (comment, gfm, markdown) @@ -9082,7 +8862,6 @@ pub mod structs { /// /// /// in: body - /// #[serde(rename = "Mode")] pub mode: Option<String>, /// Text markdown to render @@ -9090,7 +8869,6 @@ pub mod structs { /// /// /// in: body - /// #[serde(rename = "Text")] pub text: Option<String>, /// Is it a wiki page ? @@ -9098,13 +8876,11 @@ pub mod structs { /// /// /// in: body - /// #[serde(rename = "Wiki")] pub wiki: Option<bool>, } /// MarkupOption markup options - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct MarkupOption { /// Context to render @@ -9112,7 +8888,6 @@ pub mod structs { /// /// /// in: body - /// #[serde(rename = "Context")] pub context: Option<String>, /// File path for detecting extension in file mode @@ -9120,7 +8895,6 @@ pub mod structs { /// /// /// in: body - /// #[serde(rename = "FilePath")] pub file_path: Option<String>, /// Mode to render (comment, gfm, markdown, file) @@ -9128,7 +8902,6 @@ pub mod structs { /// /// /// in: body - /// #[serde(rename = "Mode")] pub mode: Option<String>, /// Text markup to render @@ -9136,7 +8909,6 @@ pub mod structs { /// /// /// in: body - /// #[serde(rename = "Text")] pub text: Option<String>, /// Is it a wiki page ? @@ -9144,13 +8916,11 @@ pub mod structs { /// /// /// in: body - /// #[serde(rename = "Wiki")] pub wiki: Option<bool>, } /// MergePullRequestForm form for merging Pull Request - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct MergePullRequestOption { #[serde(rename = "Do")] @@ -9190,7 +8960,6 @@ pub mod structs { /// MigrateRepoOptions options for migrating repository's /// /// this is used to interact with api v1 - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct MigrateRepoOptions { pub auth_password: Option<String>, @@ -9210,11 +8979,9 @@ pub mod structs { pub releases: Option<bool>, pub repo_name: String, /// Name of User or Organisation who will own Repo after migration - /// pub repo_owner: Option<String>, pub service: Option<MigrateRepoOptionsService>, /// deprecated (only for backwards compatibility) - /// pub uid: Option<u64>, pub wiki: Option<bool>, } @@ -9246,7 +9013,6 @@ pub mod structs { } } /// Milestone milestone is a collection of issues on one repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Milestone { #[serde(with = "time::serde::rfc3339::option")] @@ -9266,7 +9032,6 @@ pub mod structs { } /// NewIssuePinsAllowed represents an API response that says if new Issue Pins are allowed - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct NewIssuePinsAllowed { pub issues: Option<bool>, @@ -9274,7 +9039,6 @@ pub mod structs { } /// NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct NodeInfo { pub metadata: Option<NodeInfoMetadata>, @@ -9291,7 +9055,6 @@ pub mod structs { pub struct NodeInfoMetadata {} /// NodeInfoServices contains the third party sites this server can connect to via their application API - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct NodeInfoServices { pub inbound: Option<Vec<String>>, @@ -9299,7 +9062,6 @@ pub mod structs { } /// NodeInfoSoftware contains Metadata about server software in use - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct NodeInfoSoftware { pub homepage: Option<String>, @@ -9309,7 +9071,6 @@ pub mod structs { } /// NodeInfoUsage contains usage statistics for this server - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct NodeInfoUsage { #[serde(rename = "localComments")] @@ -9320,7 +9081,6 @@ pub mod structs { } /// NodeInfoUsageUsers contains statistics about the users of this server - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct NodeInfoUsageUsers { #[serde(rename = "activeHalfyear")] @@ -9331,7 +9091,6 @@ pub mod structs { } /// Note contains information related to a git note - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Note { pub commit: Option<Commit>, @@ -9339,14 +9098,12 @@ pub mod structs { } /// NotificationCount number of unread notifications - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct NotificationCount { pub new: Option<u64>, } /// NotificationSubject contains the notification subject (Issue/Pull/Commit) - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct NotificationSubject { #[serde(deserialize_with = "crate::none_if_blank_url")] @@ -9364,7 +9121,6 @@ pub mod structs { } /// NotificationThread expose Notification on API - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct NotificationThread { pub id: Option<u64>, @@ -9379,7 +9135,6 @@ pub mod structs { } /// NotifySubjectType represent type of notification subject - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct NotifySubjectType {} @@ -9396,7 +9151,6 @@ pub mod structs { } /// Organization represents an organization - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Organization { #[serde(deserialize_with = "crate::none_if_blank_url")] @@ -9409,14 +9163,12 @@ pub mod structs { pub name: Option<String>, pub repo_admin_change_team_access: Option<bool>, /// deprecated - /// pub username: Option<String>, pub visibility: Option<String>, pub website: Option<String>, } /// OrganizationPermissions list different users permissions on an organization - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct OrganizationPermissions { pub can_create_repository: Option<bool>, @@ -9427,7 +9179,6 @@ pub mod structs { } /// PRBranchInfo information about a branch - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PRBranchInfo { pub label: Option<String>, @@ -9439,7 +9190,6 @@ pub mod structs { } /// Package represents a package - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Package { #[serde(with = "time::serde::rfc3339::option")] @@ -9457,7 +9207,6 @@ pub mod structs { } /// PackageFile represents a package file - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PackageFile { #[serde(rename = "Size")] @@ -9471,14 +9220,12 @@ pub mod structs { } /// PayloadCommit represents a commit - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PayloadCommit { pub added: Option<Vec<String>>, pub author: Option<PayloadUser>, pub committer: Option<PayloadUser>, /// sha1 hash of the commit - /// pub id: Option<String>, pub message: Option<String>, pub modified: Option<Vec<String>>, @@ -9491,7 +9238,6 @@ pub mod structs { } /// PayloadCommitVerification represents the GPG verification of a commit - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PayloadCommitVerification { pub payload: Option<String>, @@ -9502,18 +9248,15 @@ pub mod structs { } /// PayloadUser represents the author or committer of a commit - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PayloadUser { pub email: Option<String>, /// Full name of the commit author - /// pub name: Option<String>, pub username: Option<String>, } /// Permission represents a set of permissions - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Permission { pub admin: Option<bool>, @@ -9522,7 +9265,6 @@ pub mod structs { } /// PublicKey publickey is a user key to push code to repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PublicKey { #[serde(with = "time::serde::rfc3339::option")] @@ -9539,7 +9281,6 @@ pub mod structs { } /// PullRequest represents a pull request - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PullRequest { pub allow_maintainer_edit: Option<bool>, @@ -9585,7 +9326,6 @@ pub mod structs { } /// PullRequestMeta PR info if an issue is a PR - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PullRequestMeta { pub merged: Option<bool>, @@ -9594,7 +9334,6 @@ pub mod structs { } /// PullReview represents a pull request review - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PullReview { pub body: Option<String>, @@ -9618,7 +9357,6 @@ pub mod structs { } /// PullReviewComment represents a comment on a pull request review - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PullReviewComment { pub body: Option<String>, @@ -9643,7 +9381,6 @@ pub mod structs { } /// PullReviewRequestOptions are options to add or remove pull review requests - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PullReviewRequestOptions { pub reviewers: Option<Vec<String>>, @@ -9651,7 +9388,6 @@ pub mod structs { } /// PushMirror represents information of a push mirror - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct PushMirror { pub created: Option<String>, @@ -9665,7 +9401,6 @@ pub mod structs { } /// Reaction contain one reaction - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Reaction { pub content: Option<String>, @@ -9684,7 +9419,6 @@ pub mod structs { } /// Release represents a repository release - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Release { pub assets: Option<Vec<Attachment>>, @@ -9713,16 +9447,13 @@ pub mod structs { } /// RenameUserOption options when renaming a user - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct RenameUserOption { /// New username for this user. This name cannot be in use yet by any other user. - /// pub new_username: String, } /// RepoCollaboratorPermission to get repository permission for a collaborator - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct RepoCollaboratorPermission { pub permission: Option<String>, @@ -9742,16 +9473,13 @@ pub mod structs { } /// RepoTopicOptions a collection of repo topic names - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct RepoTopicOptions { /// list of topic names - /// pub topics: Option<Vec<String>>, } /// RepoTransfer represents a pending repo transfer - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct RepoTransfer { pub doer: Option<User>, @@ -9760,7 +9488,6 @@ pub mod structs { } /// Repository represents a repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Repository { pub allow_merge_commits: Option<bool>, @@ -9833,7 +9560,6 @@ pub mod structs { } /// RepositoryMeta basic repository information - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct RepositoryMeta { pub full_name: Option<String>, @@ -9843,12 +9569,10 @@ pub mod structs { } /// ReviewStateType review state type - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ReviewStateType {} /// SearchResults results of a successful search - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct SearchResults { pub data: Option<Vec<Repository>>, @@ -9856,30 +9580,25 @@ pub mod structs { } /// Secret represents a secret - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Secret { #[serde(with = "time::serde::rfc3339::option")] pub created_at: Option<time::OffsetDateTime>, /// the secret's name - /// pub name: Option<String>, } /// ServerVersion wraps the version of the server - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ServerVersion { pub version: Option<String>, } /// StateType issue state type - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct StateType {} /// StopWatch represent a running stopwatch - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct StopWatch { #[serde(with = "time::serde::rfc3339::option")] @@ -9893,7 +9612,6 @@ pub mod structs { } /// SubmitPullReviewOptions are options to submit a pending pull review - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct SubmitPullReviewOptions { pub body: Option<String>, @@ -9901,7 +9619,6 @@ pub mod structs { } /// Tag represents a repository tag - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Tag { pub commit: Option<CommitMeta>, @@ -9915,7 +9632,6 @@ pub mod structs { } /// Team represents a team in an organization - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct Team { pub can_create_org_repo: Option<bool>, @@ -9956,12 +9672,10 @@ pub mod structs { } /// TimeStamp defines a timestamp - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct TimeStamp {} /// TimelineComment represents a timeline comment (comment of any type) on a commit or issue - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct TimelineComment { pub assignee: Option<User>, @@ -9989,11 +9703,9 @@ pub mod structs { pub ref_action: Option<String>, pub ref_comment: Option<Comment>, /// commit SHA where issue/PR was referenced - /// pub ref_commit_sha: Option<String>, pub ref_issue: Option<Issue>, /// whether the assignees were removed or added - /// pub removed_assignee: Option<bool>, pub resolve_doer: Option<User>, pub review_id: Option<u64>, @@ -10006,14 +9718,12 @@ pub mod structs { } /// TopicName a list of repo topic names - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct TopicName { pub topics: Option<Vec<String>>, } /// TopicResponse for returning topics - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct TopicResponse { #[serde(with = "time::serde::rfc3339::option")] @@ -10026,7 +9736,6 @@ pub mod structs { } /// TrackedTime worked time for an issue / pr - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct TrackedTime { #[serde(with = "time::serde::rfc3339::option")] @@ -10034,138 +9743,104 @@ pub mod structs { pub id: Option<u64>, pub issue: Option<Issue>, /// deprecated (only for backwards compatibility) - /// pub issue_id: Option<u64>, /// Time in seconds - /// pub time: Option<u64>, /// deprecated (only for backwards compatibility) - /// pub user_id: Option<u64>, pub user_name: Option<String>, } /// TransferRepoOption options when transfer a repository's ownership - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct TransferRepoOption { pub new_owner: String, /// ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. - /// pub team_ids: Option<Vec<u64>>, } /// UpdateFileOptions options for updating files /// /// Note: `author` and `committer` are optional (if only one is given, it will be used for the other, otherwise the authenticated user will be used) - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct UpdateFileOptions { pub author: Option<Identity>, /// branch (optional) to base this file from. if not given, the default branch is used - /// pub branch: Option<String>, pub committer: Option<Identity>, /// content must be base64 encoded - /// pub content: String, pub dates: Option<CommitDateOptions>, /// from_path (optional) is the path of the original file which will be moved/renamed to the path in the URL - /// pub from_path: Option<String>, /// message (optional) for the commit of this file. if not supplied, a default message will be used - /// pub message: Option<String>, /// new_branch (optional) will make a new branch from `branch` before creating the file - /// pub new_branch: Option<String>, /// sha is the SHA for the file that already exists - /// pub sha: String, /// Add a Signed-off-by trailer by the committer at the end of the commit log message. - /// pub signoff: Option<bool>, } /// UpdateRepoAvatarUserOption options when updating the repo avatar - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct UpdateRepoAvatarOption { /// image must be base64 encoded - /// pub image: Option<String>, } /// UpdateUserAvatarUserOption options when updating the user avatar - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct UpdateUserAvatarOption { /// image must be base64 encoded - /// pub image: Option<String>, } /// User represents a user - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct User { /// Is user active - /// pub active: Option<bool>, #[serde(deserialize_with = "crate::none_if_blank_url")] /// URL to the user's avatar - /// pub avatar_url: Option<url::Url>, #[serde(with = "time::serde::rfc3339::option")] pub created: Option<time::OffsetDateTime>, /// the user's description - /// pub description: Option<String>, pub email: Option<String>, /// user counts - /// pub followers_count: Option<u64>, pub following_count: Option<u64>, /// the user's full name - /// pub full_name: Option<String>, /// the user's id - /// pub id: Option<u64>, /// Is the user an administrator - /// pub is_admin: Option<bool>, /// User locale - /// pub language: Option<String>, #[serde(with = "time::serde::rfc3339::option")] pub last_login: Option<time::OffsetDateTime>, /// the user's location - /// pub location: Option<String>, /// the user's username - /// pub login: Option<String>, /// the user's authentication sign-in name. - /// pub login_name: Option<String>, /// Is user login prohibited - /// pub prohibit_login: Option<bool>, /// Is user restricted - /// pub restricted: Option<bool>, pub starred_repos_count: Option<u64>, /// User visibility level option: public, limited, private - /// pub visibility: Option<String>, /// the user's website - /// pub website: Option<String>, } /// UserHeatmapData represents the data needed to create a heatmap - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct UserHeatmapData { pub contributions: Option<u64>, @@ -10173,7 +9848,6 @@ pub mod structs { } /// UserSettings represents user settings - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct UserSettings { pub description: Option<String>, @@ -10181,7 +9855,6 @@ pub mod structs { pub full_name: Option<String>, pub hide_activity: Option<bool>, /// Privacy - /// pub hide_email: Option<bool>, pub language: Option<String>, pub location: Option<String>, @@ -10190,7 +9863,6 @@ pub mod structs { } /// UserSettingsOptions represents options to change user settings - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct UserSettingsOptions { pub description: Option<String>, @@ -10198,7 +9870,6 @@ pub mod structs { pub full_name: Option<String>, pub hide_activity: Option<bool>, /// Privacy - /// pub hide_email: Option<bool>, pub language: Option<String>, pub location: Option<String>, @@ -10207,7 +9878,6 @@ pub mod structs { } /// WatchInfo represents an API watch status of one repository - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct WatchInfo { #[serde(with = "time::serde::rfc3339::option")] @@ -10222,7 +9892,6 @@ pub mod structs { } /// WikiCommit page commit/revision - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct WikiCommit { pub author: Option<CommitUser>, @@ -10232,7 +9901,6 @@ pub mod structs { } /// WikiCommitList commit/revision list - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct WikiCommitList { pub commits: Option<Vec<WikiCommit>>, @@ -10240,12 +9908,10 @@ pub mod structs { } /// WikiPage a wiki page - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct WikiPage { pub commit_count: Option<u64>, /// Page content, base64 encoded - /// pub content_base64: Option<String>, pub footer: Option<String>, #[serde(deserialize_with = "crate::none_if_blank_url")] @@ -10258,7 +9924,6 @@ pub mod structs { } /// WikiPageMetaData wiki page meta information - /// #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct WikiPageMetaData { #[serde(deserialize_with = "crate::none_if_blank_url")] @@ -10511,10 +10176,8 @@ pub mod structs { pub struct AdminCronListQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10533,10 +10196,8 @@ pub mod structs { pub struct AdminGetAllEmailsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10555,13 +10216,10 @@ pub mod structs { pub struct AdminSearchEmailsQuery { /// keyword - /// pub q: Option<String>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10583,10 +10241,8 @@ pub mod structs { pub struct AdminListHooksQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10605,10 +10261,8 @@ pub mod structs { pub struct AdminGetAllOrgsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10627,13 +10281,10 @@ pub mod structs { pub struct AdminUnadoptedListQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, /// pattern of repositories to search for - /// pub pattern: Option<String>, } @@ -10655,16 +10306,12 @@ pub mod structs { pub struct AdminSearchUsersQuery { /// ID of the user's login source to search for - /// pub source_id: Option<u64>, /// user's login name to search for - /// pub login_name: Option<String>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10689,7 +10336,6 @@ pub mod structs { pub struct AdminDeleteUserQuery { /// purge the user from the system completely - /// pub purge: Option<bool>, } @@ -10705,25 +10351,18 @@ pub mod structs { pub struct NotifyGetListQuery { /// If true, show notifications marked as read. Default value is false - /// pub all: Option<bool>, /// Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned. - /// pub status_types: Option<Vec<String>>, /// filter notifications by subject type - /// pub subject_type: Option<Vec<NotifyGetListQuerySubjectType>>, /// Only show notifications updated after the given time. This is a timestamp in RFC 3339 format - /// pub since: Option<time::OffsetDateTime>, /// Only show notifications updated before the given time. This is a timestamp in RFC 3339 format - /// pub before: Option<time::OffsetDateTime>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10799,16 +10438,12 @@ pub mod structs { } pub struct NotifyReadListQuery { /// Describes the last point that notifications were checked. Anything updated since this time will not be updated. - /// pub last_read_at: Option<time::OffsetDateTime>, /// If true, mark all notifications on this repo. Default value is false - /// pub all: Option<String>, /// Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. - /// pub status_types: Option<Vec<String>>, /// Status to mark notifications as, Defaults to read. - /// pub to_status: Option<String>, } @@ -10845,7 +10480,6 @@ pub mod structs { pub struct NotifyReadThreadQuery { /// Status to mark notifications as - /// pub to_status: Option<String>, } @@ -10861,10 +10495,8 @@ pub mod structs { pub struct OrgGetAllQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10883,10 +10515,8 @@ pub mod structs { pub struct OrgListActionsSecretsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10905,13 +10535,10 @@ pub mod structs { pub struct OrgListActivityFeedsQuery { /// the date of the activities to be found - /// pub date: Option<time::Date>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10939,10 +10566,8 @@ pub mod structs { pub struct OrgListHooksQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10961,10 +10586,8 @@ pub mod structs { pub struct OrgListLabelsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -10983,10 +10606,8 @@ pub mod structs { pub struct OrgListBlockedUsersQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11005,10 +10626,8 @@ pub mod structs { pub struct OrgListMembersQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11027,10 +10646,8 @@ pub mod structs { pub struct OrgListPublicMembersQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11049,10 +10666,8 @@ pub mod structs { pub struct OrgListReposQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11071,10 +10686,8 @@ pub mod structs { pub struct OrgListTeamsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11093,16 +10706,12 @@ pub mod structs { pub struct TeamSearchQuery { /// keywords to search - /// pub q: Option<String>, /// include search within team description (defaults to true) - /// pub include_desc: Option<bool>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11132,16 +10741,12 @@ pub mod structs { pub struct ListPackagesQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, /// package type filter - /// pub r#type: Option<ListPackagesQueryType>, /// name filter - /// pub q: Option<String>, } @@ -11218,55 +10823,38 @@ pub mod structs { } pub struct IssueSearchIssuesQuery { /// whether issue is open or closed - /// pub state: Option<String>, /// comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded - /// pub labels: Option<String>, /// comma separated list of milestone names. Fetch only issues that have any of this milestones. Non existent are discarded - /// pub milestones: Option<String>, /// search string - /// pub q: Option<String>, /// repository to prioritize in the results - /// pub priority_repo_id: Option<u64>, /// filter by type (issues / pulls) if set - /// pub r#type: Option<String>, /// Only show notifications updated after the given time. This is a timestamp in RFC 3339 format - /// pub since: Option<time::OffsetDateTime>, /// Only show notifications updated before the given time. This is a timestamp in RFC 3339 format - /// pub before: Option<time::OffsetDateTime>, /// filter (issues / pulls) assigned to you, default is false - /// pub assigned: Option<bool>, /// filter (issues / pulls) created by you, default is false - /// pub created: Option<bool>, /// filter (issues / pulls) mentioning you, default is false - /// pub mentioned: Option<bool>, /// filter pulls requesting your review, default is false - /// pub review_requested: Option<bool>, /// filter pulls reviewed by you, default is false - /// pub reviewed: Option<bool>, /// filter by owner - /// pub owner: Option<String>, /// filter by team (requires organization owner parameter to be provided) - /// pub team: Option<String>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11342,55 +10930,38 @@ pub mod structs { pub struct RepoSearchQuery { /// keyword - /// pub q: Option<String>, /// Limit search to repositories with keyword as topic - /// pub topic: Option<bool>, /// include search of keyword within repository description - /// pub include_desc: Option<bool>, /// search only for repos that the user with the given id owns or contributes to - /// pub uid: Option<u64>, /// repo owner to prioritize in the results - /// pub priority_owner_id: Option<u64>, /// search only for repos that belong to the given team id - /// pub team_id: Option<u64>, /// search only for repos that the user with the given id has starred - /// pub starred_by: Option<u64>, /// include private repositories this user has access to (defaults to true) - /// pub private: Option<bool>, /// show only pubic, private or all repositories (defaults to all) - /// pub is_private: Option<bool>, /// include template repositories this user has access to (defaults to true) - /// pub template: Option<bool>, /// show only archived, non-archived or all repositories (defaults to all) - /// pub archived: Option<bool>, /// type of repository to search for. Supported values are "fork", "source", "mirror" and "collaborative" - /// pub mode: Option<String>, /// if `uid` is given, search only for repos that the user owns - /// pub exclusive: Option<bool>, /// sort repos by attribute. Supported values are "alpha", "created", "updated", "size", and "id". Default is "alpha" - /// pub sort: Option<String>, /// sort order, either "asc" (ascending) or "desc" (descending). Default is "asc", ignored if "sort" is not specified. - /// pub order: Option<String>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11454,13 +11025,10 @@ pub mod structs { pub struct RepoListActivityFeedsQuery { /// the date of the activities to be found - /// pub date: Option<time::Date>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11488,10 +11056,8 @@ pub mod structs { pub struct RepoListBranchesQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11510,10 +11076,8 @@ pub mod structs { pub struct RepoListCollaboratorsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11532,28 +11096,20 @@ pub mod structs { pub struct RepoGetAllCommitsQuery { /// SHA or branch to start listing commits from (usually 'master') - /// pub sha: Option<String>, /// filepath of a file/dir - /// pub path: Option<String>, /// include diff stats for every commit (disable for speedup, default 'true') - /// pub stat: Option<bool>, /// include verification for every commit (disable for speedup, default 'true') - /// pub verification: Option<bool>, /// include a list of affected files for every commit (disable for speedup, default 'true') - /// pub files: Option<bool>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results (ignored if used with 'path') - /// pub limit: Option<u32>, /// commits that match the given specifier will not be listed. - /// pub not: Option<String>, } @@ -11590,10 +11146,8 @@ pub mod structs { pub struct RepoGetCombinedStatusByRefQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11612,16 +11166,12 @@ pub mod structs { pub struct RepoListStatusesByRefQuery { /// type of sort - /// pub sort: Option<RepoListStatusesByRefQuerySort>, /// type of state - /// pub state: Option<RepoListStatusesByRefQueryState>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11687,7 +11237,6 @@ pub mod structs { } pub struct RepoGetContentsListQuery { /// The name of the commit/branch/tag. Default the repository’s default branch (usually master) - /// pub r#ref: Option<String>, } @@ -11703,7 +11252,6 @@ pub mod structs { pub struct RepoGetContentsQuery { /// The name of the commit/branch/tag. Default the repository’s default branch (usually master) - /// pub r#ref: Option<String>, } @@ -11719,7 +11267,6 @@ pub mod structs { pub struct RepoGetEditorConfigQuery { /// The name of the commit/branch/tag. Default the repository’s default branch (usually master) - /// pub r#ref: Option<String>, } @@ -11735,10 +11282,8 @@ pub mod structs { pub struct ListForksQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11757,13 +11302,10 @@ pub mod structs { pub struct RepoGetSingleCommitQuery { /// include diff stats for every commit (disable for speedup, default 'true') - /// pub stat: Option<bool>, /// include verification for every commit (disable for speedup, default 'true') - /// pub verification: Option<bool>, /// include a list of affected files for every commit (disable for speedup, default 'true') - /// pub files: Option<bool>, } @@ -11785,10 +11327,8 @@ pub mod structs { pub struct RepoGetNoteQuery { /// include verification for every commit (disable for speedup, default 'true') - /// pub verification: Option<bool>, /// include a list of affected files for every commit (disable for speedup, default 'true') - /// pub files: Option<bool>, } @@ -11807,13 +11347,10 @@ pub mod structs { pub struct GetTreeQuery { /// show all directories and files - /// pub recursive: Option<bool>, /// page number; the 'truncated' field in the response will be true if there are still more items after this page, false if the last page - /// pub page: Option<u32>, /// number of items per page - /// pub per_page: Option<u32>, } @@ -11835,10 +11372,8 @@ pub mod structs { pub struct RepoListHooksQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11857,7 +11392,6 @@ pub mod structs { pub struct RepoTestHookQuery { /// The name of the commit/branch/tag, indicates which commit will be loaded to the webhook payload. - /// pub r#ref: Option<String>, } @@ -11873,40 +11407,28 @@ pub mod structs { pub struct IssueListIssuesQuery { /// whether issue is open or closed - /// pub state: Option<IssueListIssuesQueryState>, /// comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded - /// pub labels: Option<String>, /// search string - /// pub q: Option<String>, /// filter by type (issues / pulls) if set - /// pub r#type: Option<IssueListIssuesQueryType>, /// comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded - /// pub milestones: Option<String>, /// Only show items updated after the given time. This is a timestamp in RFC 3339 format - /// pub since: Option<time::OffsetDateTime>, /// Only show items updated before the given time. This is a timestamp in RFC 3339 format - /// pub before: Option<time::OffsetDateTime>, /// Only show items which were created by the the given user - /// pub created_by: Option<String>, /// Only show items for which the given user is assigned - /// pub assigned_by: Option<String>, /// Only show items in which the given user was mentioned - /// pub mentioned_by: Option<String>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -11998,16 +11520,12 @@ pub mod structs { } pub struct IssueGetRepoCommentsQuery { /// if provided, only comments updated since the provided time are returned. - /// pub since: Option<time::OffsetDateTime>, /// if provided, only comments updated before the provided time are returned. - /// pub before: Option<time::OffsetDateTime>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12044,10 +11562,8 @@ pub mod structs { pub struct IssueCreateIssueCommentAttachmentQuery { /// name of the attachment - /// pub name: Option<String>, /// time of the attachment's creation. This is a timestamp in RFC 3339 format - /// pub updated_at: Option<time::OffsetDateTime>, } @@ -12072,10 +11588,8 @@ pub mod structs { pub struct IssueCreateIssueAttachmentQuery { /// name of the attachment - /// pub name: Option<String>, /// time of the attachment's creation. This is a timestamp in RFC 3339 format - /// pub updated_at: Option<time::OffsetDateTime>, } @@ -12100,10 +11614,8 @@ pub mod structs { pub struct IssueListBlocksQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12122,10 +11634,8 @@ pub mod structs { pub struct IssueGetCommentsQuery { /// if provided, only comments updated since the specified time are returned. - /// pub since: Option<time::OffsetDateTime>, /// if provided, only comments updated before the provided time are returned. - /// pub before: Option<time::OffsetDateTime>, } @@ -12156,10 +11666,8 @@ pub mod structs { pub struct IssueListIssueDependenciesQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12178,10 +11686,8 @@ pub mod structs { pub struct IssueGetIssueReactionsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12200,10 +11706,8 @@ pub mod structs { pub struct IssueSubscriptionsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12222,16 +11726,12 @@ pub mod structs { pub struct IssueGetCommentsAndTimelineQuery { /// if provided, only comments updated since the specified time are returned. - /// pub since: Option<time::OffsetDateTime>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, /// if provided, only comments updated before the provided time are returned. - /// pub before: Option<time::OffsetDateTime>, } @@ -12268,19 +11768,14 @@ pub mod structs { pub struct IssueTrackedTimesQuery { /// optional filter by user (available for issue managers) - /// pub user: Option<String>, /// Only show times updated after the given time. This is a timestamp in RFC 3339 format - /// pub since: Option<time::OffsetDateTime>, /// Only show times updated before the given time. This is a timestamp in RFC 3339 format - /// pub before: Option<time::OffsetDateTime>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12320,16 +11815,12 @@ pub mod structs { pub struct RepoListKeysQuery { /// the key_id to search for - /// pub key_id: Option<u32>, /// fingerprint of the key - /// pub fingerprint: Option<String>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12354,10 +11845,8 @@ pub mod structs { pub struct IssueListLabelsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12381,7 +11870,6 @@ pub mod structs { pub struct RepoGetRawFileOrLfsQuery { /// The name of the commit/branch/tag. Default the repository’s default branch (usually master) - /// pub r#ref: Option<String>, } @@ -12397,16 +11885,12 @@ pub mod structs { pub struct IssueGetMilestonesListQuery { /// Milestone state, Recognized values are open, closed and all. Defaults to "open" - /// pub state: Option<String>, /// filter by milestone name - /// pub name: Option<String>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12431,25 +11915,18 @@ pub mod structs { pub struct NotifyGetRepoListQuery { /// If true, show notifications marked as read. Default value is false - /// pub all: Option<bool>, /// Show notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread & pinned - /// pub status_types: Option<Vec<String>>, /// filter notifications by subject type - /// pub subject_type: Option<Vec<NotifyGetRepoListQuerySubjectType>>, /// Only show notifications updated after the given time. This is a timestamp in RFC 3339 format - /// pub since: Option<time::OffsetDateTime>, /// Only show notifications updated before the given time. This is a timestamp in RFC 3339 format - /// pub before: Option<time::OffsetDateTime>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12525,16 +12002,12 @@ pub mod structs { } pub struct NotifyReadRepoListQuery { /// If true, mark all notifications on this repo. Default value is false - /// pub all: Option<String>, /// Mark notifications with the provided status types. Options are: unread, read and/or pinned. Defaults to unread. - /// pub status_types: Option<Vec<String>>, /// Status to mark notifications as. Defaults to read. - /// pub to_status: Option<String>, /// Describes the last point that notifications were checked. Anything updated since this time will not be updated. - /// pub last_read_at: Option<time::OffsetDateTime>, } @@ -12571,22 +12044,16 @@ pub mod structs { pub struct RepoListPullRequestsQuery { /// State of pull request: open or closed (optional) - /// pub state: Option<RepoListPullRequestsQueryState>, /// Type of sort - /// pub sort: Option<RepoListPullRequestsQuerySort>, /// ID of the milestone - /// pub milestone: Option<u64>, /// Label IDs - /// pub labels: Option<Vec<u64>>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12662,7 +12129,6 @@ pub mod structs { } pub struct RepoDownloadPullDiffOrPatchQuery { /// whether to include binary file changes. if true, the diff is applicable with `git apply` - /// pub binary: Option<bool>, } @@ -12678,16 +12144,12 @@ pub mod structs { pub struct RepoGetPullRequestCommitsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, /// include verification for every commit (disable for speedup, default 'true') - /// pub verification: Option<bool>, /// include a list of affected files for every commit (disable for speedup, default 'true') - /// pub files: Option<bool>, } @@ -12712,16 +12174,12 @@ pub mod structs { pub struct RepoGetPullRequestFilesQuery { /// skip to given file - /// pub skip_to: Option<String>, /// whitespace behavior - /// pub whitespace: Option<RepoGetPullRequestFilesQueryWhitespace>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12764,10 +12222,8 @@ pub mod structs { } pub struct RepoListPullReviewsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12786,7 +12242,6 @@ pub mod structs { pub struct RepoUpdatePullRequestQuery { /// how to update pull request - /// pub style: Option<RepoUpdatePullRequestQueryStyle>, } @@ -12816,10 +12271,8 @@ pub mod structs { } pub struct RepoListPushMirrorsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12838,7 +12291,6 @@ pub mod structs { pub struct RepoGetRawFileQuery { /// The name of the commit/branch/tag. Default the repository’s default branch (usually master) - /// pub r#ref: Option<String>, } @@ -12854,19 +12306,14 @@ pub mod structs { pub struct RepoListReleasesQuery { /// filter (exclude / include) drafts, if you dont have repo write access none will show - /// pub draft: Option<bool>, /// filter (exclude / include) pre-releases - /// pub pre_release: Option<bool>, /// page size of results, deprecated - use limit - /// pub per_page: Option<u32>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12894,7 +12341,6 @@ pub mod structs { pub struct RepoCreateReleaseAttachmentQuery { /// name of the attachment - /// pub name: Option<String>, } @@ -12910,10 +12356,8 @@ pub mod structs { pub struct RepoListStargazersQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -12932,16 +12376,12 @@ pub mod structs { pub struct RepoListStatusesQuery { /// type of sort - /// pub sort: Option<RepoListStatusesQuerySort>, /// type of state - /// pub state: Option<RepoListStatusesQueryState>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13007,10 +12447,8 @@ pub mod structs { } pub struct RepoListSubscribersQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13029,10 +12467,8 @@ pub mod structs { pub struct RepoListTagsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results, default maximum page size is 50 - /// pub limit: Option<u32>, } @@ -13051,19 +12487,14 @@ pub mod structs { pub struct RepoTrackedTimesQuery { /// optional filter by user (available for issue managers) - /// pub user: Option<String>, /// Only show times updated after the given time. This is a timestamp in RFC 3339 format - /// pub since: Option<time::OffsetDateTime>, /// Only show times updated before the given time. This is a timestamp in RFC 3339 format - /// pub before: Option<time::OffsetDateTime>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13103,10 +12534,8 @@ pub mod structs { pub struct RepoListTopicsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13125,10 +12554,8 @@ pub mod structs { pub struct RepoGetWikiPagesQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13147,7 +12574,6 @@ pub mod structs { pub struct RepoGetWikiPageRevisionsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, } @@ -13163,13 +12589,10 @@ pub mod structs { pub struct OrgListTeamActivityFeedsQuery { /// the date of the activities to be found - /// pub date: Option<time::Date>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13197,10 +12620,8 @@ pub mod structs { pub struct OrgListTeamMembersQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13219,10 +12640,8 @@ pub mod structs { pub struct OrgListTeamReposQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13241,13 +12660,10 @@ pub mod structs { pub struct TopicSearchQuery { /// keywords to search - /// pub q: String, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13268,10 +12684,8 @@ pub mod structs { pub struct UserGetOAuth2ApplicationsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13290,10 +12704,8 @@ pub mod structs { pub struct UserCurrentListFollowersQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13312,10 +12724,8 @@ pub mod structs { pub struct UserCurrentListFollowingQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13334,10 +12744,8 @@ pub mod structs { pub struct UserCurrentListGpgKeysQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13356,10 +12764,8 @@ pub mod structs { pub struct UserListHooksQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13378,13 +12784,10 @@ pub mod structs { pub struct UserCurrentListKeysQuery { /// fingerprint of the key - /// pub fingerprint: Option<String>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13406,10 +12809,8 @@ pub mod structs { pub struct UserListBlockedUsersQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13428,10 +12829,8 @@ pub mod structs { pub struct OrgListCurrentUserOrgsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13450,10 +12849,8 @@ pub mod structs { pub struct UserCurrentListReposQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13472,10 +12869,8 @@ pub mod structs { pub struct UserCurrentListStarredQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13494,10 +12889,8 @@ pub mod structs { pub struct UserGetStopWatchesQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13516,10 +12909,8 @@ pub mod structs { pub struct UserCurrentListSubscriptionsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13538,10 +12929,8 @@ pub mod structs { pub struct UserListTeamsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13560,16 +12949,12 @@ pub mod structs { pub struct UserCurrentTrackedTimesQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, /// Only show times updated after the given time. This is a timestamp in RFC 3339 format - /// pub since: Option<time::OffsetDateTime>, /// Only show times updated before the given time. This is a timestamp in RFC 3339 format - /// pub before: Option<time::OffsetDateTime>, } @@ -13606,16 +12991,12 @@ pub mod structs { pub struct UserSearchQuery { /// keyword - /// pub q: Option<String>, /// ID of the user to search for - /// pub uid: Option<u64>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13645,16 +13026,12 @@ pub mod structs { pub struct UserListActivityFeedsQuery { /// if true, only show actions performed by the requested user - /// pub only_performed_by: Option<bool>, /// the date of the activities to be found - /// pub date: Option<time::Date>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13685,10 +13062,8 @@ pub mod structs { pub struct UserListFollowersQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13707,10 +13082,8 @@ pub mod structs { pub struct UserListFollowingQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13729,10 +13102,8 @@ pub mod structs { pub struct UserListGpgKeysQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13751,13 +13122,10 @@ pub mod structs { pub struct UserListKeysQuery { /// fingerprint of the key - /// pub fingerprint: Option<String>, /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13779,10 +13147,8 @@ pub mod structs { pub struct OrgListUserOrgsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13801,10 +13167,8 @@ pub mod structs { pub struct UserListReposQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13823,10 +13187,8 @@ pub mod structs { pub struct UserListStarredQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13845,10 +13207,8 @@ pub mod structs { pub struct UserListSubscriptionsQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } @@ -13867,10 +13227,8 @@ pub mod structs { pub struct UserGetTokensQuery { /// page number of results to return (1-based) - /// pub page: Option<u32>, /// page size of results - /// pub limit: Option<u32>, } |