pub struct ReposCreateForAuthenticatedUserRequest {Show 23 fields
pub name: String,
pub description: Option<String>,
pub homepage: Option<String>,
pub private: Option<bool>,
pub has_issues: Option<bool>,
pub has_projects: Option<bool>,
pub has_wiki: Option<bool>,
pub has_discussions: Option<bool>,
pub team_id: Option<i32>,
pub auto_init: Option<bool>,
pub gitignore_template: Option<String>,
pub license_template: Option<String>,
pub allow_squash_merge: Option<bool>,
pub allow_merge_commit: Option<bool>,
pub allow_rebase_merge: Option<bool>,
pub allow_auto_merge: Option<bool>,
pub delete_branch_on_merge: Option<bool>,
pub squash_merge_commit_title: Option<SquashMergeCommitTitle>,
pub squash_merge_commit_message: Option<SquashMergeCommitMessage>,
pub merge_commit_title: Option<MergeCommitTitle>,
pub merge_commit_message: Option<MergeCommitMessage>,
pub has_downloads: Option<bool>,
pub is_template: Option<bool>,
}
Fields§
§name: String
The name of the repository.
description: Option<String>
A short description of the repository.
homepage: Option<String>
A URL with more information about the repository.
private: Option<bool>
Whether the repository is private.
has_issues: Option<bool>
Whether issues are enabled.
has_projects: Option<bool>
Whether projects are enabled.
has_wiki: Option<bool>
Whether the wiki is enabled.
has_discussions: Option<bool>
Whether discussions are enabled.
team_id: Option<i32>
The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
auto_init: Option<bool>
Whether the repository is initialized with a minimal README.
gitignore_template: Option<String>
The desired language or platform to apply to the .gitignore.
license_template: Option<String>
The license keyword of the open source license for this repository.
allow_squash_merge: Option<bool>
Whether to allow squash merges for pull requests.
allow_merge_commit: Option<bool>
Whether to allow merge commits for pull requests.
allow_rebase_merge: Option<bool>
Whether to allow rebase merges for pull requests.
allow_auto_merge: Option<bool>
Whether to allow Auto-merge to be used on pull requests.
delete_branch_on_merge: Option<bool>
Whether to delete head branches when pull requests are merged
squash_merge_commit_title: Option<SquashMergeCommitTitle>
The default value for a squash merge commit title: - PR_TITLE
- default to the pull request’s title. - COMMIT_OR_PR_TITLE
- default to the commit’s title (if only one commit) or the pull request’s title (when more than one commit).
squash_merge_commit_message: Option<SquashMergeCommitMessage>
The default value for a squash merge commit message: - PR_BODY
- default to the pull request’s body. - COMMIT_MESSAGES
- default to the branch’s commit messages. - BLANK
- default to a blank commit message.
merge_commit_title: Option<MergeCommitTitle>
The default value for a merge commit title. - PR_TITLE
- default to the pull request’s title. - MERGE_MESSAGE
- default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name).
merge_commit_message: Option<MergeCommitMessage>
The default value for a merge commit message. - PR_TITLE
- default to the pull request’s title. - PR_BODY
- default to the pull request’s body. - BLANK
- default to a blank commit message.
has_downloads: Option<bool>
Whether downloads are enabled.
is_template: Option<bool>
Whether this repository acts as a template that can be used to generate new repositories.
Implementations§
Trait Implementations§
Source§impl Clone for ReposCreateForAuthenticatedUserRequest
impl Clone for ReposCreateForAuthenticatedUserRequest
Source§fn clone(&self) -> ReposCreateForAuthenticatedUserRequest
fn clone(&self) -> ReposCreateForAuthenticatedUserRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ReposCreateForAuthenticatedUserRequest
impl Default for ReposCreateForAuthenticatedUserRequest
Source§fn default() -> ReposCreateForAuthenticatedUserRequest
fn default() -> ReposCreateForAuthenticatedUserRequest
Source§impl<'de> Deserialize<'de> for ReposCreateForAuthenticatedUserRequest
impl<'de> Deserialize<'de> for ReposCreateForAuthenticatedUserRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ReposCreateForAuthenticatedUserRequest
impl PartialEq for ReposCreateForAuthenticatedUserRequest
Source§fn eq(&self, other: &ReposCreateForAuthenticatedUserRequest) -> bool
fn eq(&self, other: &ReposCreateForAuthenticatedUserRequest) -> bool
self
and other
values to be equal, and is used by ==
.