Struct octorust::types::ReposCreateInOrgRequest [−][src]
pub struct ReposCreateInOrgRequest {}Show fields
pub allow_merge_commit: bool, pub allow_rebase_merge: bool, pub allow_squash_merge: bool, pub auto_init: bool, pub delete_branch_on_merge: bool, pub description: String, pub gitignore_template: String, pub has_issues: bool, pub has_projects: bool, pub has_wiki: bool, pub homepage: String, pub is_template: bool, pub license_template: String, pub name: String, pub private: bool, pub team_id: i64, pub visibility: Option<ReposCreateInOrgRequestVisibility>,
Fields
allow_merge_commit: bool
Either true
to allow merging pull requests with a merge commit, or false
to prevent merging pull requests with merge commits.
allow_rebase_merge: bool
Either true
to allow rebase-merging pull requests, or false
to prevent rebase-merging.
allow_squash_merge: bool
Either true
to allow squash-merging pull requests, or false
to prevent squash-merging.
auto_init: bool
Pass true
to create an initial commit with empty README.
delete_branch_on_merge: bool
Either true
to allow automatically deleting head branches when pull requests are merged, or false
to prevent automatic deletion.
description: String
A short description of the repository.
gitignore_template: String
Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, “Haskell”.
has_issues: bool
Either true
to enable issues for this repository or false
to disable them.
has_projects: bool
Either true
to enable projects for this repository or false
to disable them. **Note:** If you’re creating a repository in an organization that has disabled repository projects, the default is false
, and if you pass true
, the API returns an error.
has_wiki: bool
Either true
to enable the wiki for this repository or false
to disable it.
homepage: String
A URL with more information about the repository.
is_template: bool
Either true
to make this repo available as a template repository or false
to prevent it.
license_template: String
Choose an open source license template that best suits your needs, and then use the license keyword as the license_template
string. For example, “mit” or “mpl-2.0”.
name: String
The name of the repository.
private: bool
Whether the repository is private.
team_id: i64
The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.
visibility: Option<ReposCreateInOrgRequestVisibility>
Can be public
or private
. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility
can also be internal
. Note: For GitHub Enterprise Server and GitHub AE, this endpoint will only list repositories available to all users on the enterprise. For more information, see “Creating an internal repository” in the GitHub Help documentation.
The visibility
parameter overrides the private
parameter when you use both parameters with the nebula-preview
preview header.
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ReposCreateInOrgRequest
impl Send for ReposCreateInOrgRequest
impl Sync for ReposCreateInOrgRequest
impl Unpin for ReposCreateInOrgRequest
impl UnwindSafe for ReposCreateInOrgRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more