Struct octorust::types::ReposUpdateRequest[][src]

pub struct ReposUpdateRequest {
Show fields pub allow_merge_commit: bool, pub allow_rebase_merge: bool, pub allow_squash_merge: bool, pub archived: bool, pub default_branch: String, pub delete_branch_on_merge: bool, pub description: String, pub has_issues: bool, pub has_projects: bool, pub has_wiki: bool, pub homepage: String, pub is_template: bool, pub name: String, pub private: bool, pub security_and_analysis: Option<ReposUpdateRequestSecurityAnalysis>, pub visibility: Option<ReposUpdateRequestVisibility>,
}

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.

archived: bool

true to archive this repository. **Note**: You cannot unarchive repositories through the API.

default_branch: String

Updates the default branch for this repository.

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.

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.

name: String

The name of the repository.

private: bool

Either true to make the repository private or false to make it public. Default: false.
**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. **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.

security_and_analysis: Option<ReposUpdateRequestSecurityAnalysis>

Specify which security and analysis features to enable or disable. For example, to enable GitHub Advanced Security, use this data in the body of the PATCH request: {"security_and_analysis": {"advanced_security": {"status": "enabled"}}}. If you have admin permissions for a private repository covered by an Advanced Security license, you can check which security and analysis features are currently enabled by using a GET /repos/{owner}/{repo} request.

visibility: Option<ReposUpdateRequestVisibility>

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. The visibility parameter overrides the private parameter when you use both along 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.