Struct octorust::types::ReposCreateInOrgRequest[][src]

pub struct ReposCreateInOrgRequest {
Show 17 fields pub allow_merge_commit: Option<bool>, pub allow_rebase_merge: Option<bool>, pub allow_squash_merge: Option<bool>, pub auto_init: Option<bool>, pub delete_branch_on_merge: Option<bool>, pub description: String, pub gitignore_template: String, pub has_issues: Option<bool>, pub has_projects: Option<bool>, pub has_wiki: Option<bool>, pub homepage: String, pub is_template: Option<bool>, pub license_template: String, pub name: String, pub private: Option<bool>, pub team_id: i64, pub visibility: Option<ReposCreateInOrgRequestVisibility>,
}

Fields

allow_merge_commit: Option<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: Option<bool>

Either true to allow rebase-merging pull requests, or false to prevent rebase-merging.

allow_squash_merge: Option<bool>

Either true to allow squash-merging pull requests, or false to prevent squash-merging.

auto_init: Option<bool>

Pass true to create an initial commit with empty README.

delete_branch_on_merge: Option<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: Option<bool>

Either true to enable issues for this repository or false to disable them.

has_projects: Option<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: Option<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: Option<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: Option<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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.