pub struct CreateProjectBuilder<'a> { /* private fields */ }
Expand description

Builder for CreateProject.

Implementations§

The namespace of the new project.

By default, the project is created in the API caller’s namespace.

The default branch of the new project.

Defaults to master.

The description of the new project.

Set the access level for issues.

Set the access level for repository access.

Set the access level for container registry access.

Set the access level for merge requests.

Set the access level for making a fork of the project.

Set the access level for CI pipeline access.

Set the access level for access to view the wiki.

Set the access level for snippets.

Set the access level for GitLab Pages on the project.

Set the access level for operations features.

Set the access level for requirements features.

Set the access level for analytics features.

Set the access level for security and compliance features.

Whether to enable email notifications or not.

Whether the default set of award emojis are shown for this project.

Whether to allow non-members to set pipeline variables when triggering piplines or not.

Whether outdated diff discussions are resolved when a merge request is updated or not.

Whether the container registry is enabled or not.

The expiration policy for containers.

Whether the project can use shared runners or not.

The visibility level of the project.

A URL to import the repository from.

Whether job results are visible to non-project members or not.

Whether the CI pipeline is required to succeed before merges are allowed.

Whether the CI pipeline can be skipped before merges are allowed.

Whether all discussions must be resolved before merges are allowed.

The merge method to use for the project.

Whether merge pipelines are enabled.

Whether merge trains are enabled.

The squash option for the project.

Whether issues referenced on the default branch should be closed or not.

Whether to enabled the “Remove source branch” option in new merge requests by default or not.

Whether git-lfs support should be enabled or not.

See the git-lfs website for more information.

Whether users may request access to the repository or not.

Whether to show a link to create or view a merge request when pushing a branch from the command line or not.

The default Git strategy for CI jobs of the project.

The default timeout for jobs of the project (in seconds).

Whether to automatically cancel pipelines when branches are updated when using a previous version of the branch.

The default regular expression to use for build coverage extraction.

The path to the GitLab CI configuration file within the repository.

Defaults to .gitlab-ci.yml.

Whether Auto DevOps are enabled or not.

The Auto Deploy strategy of the project.

The storage shard on which to store the repository.

How many approvals are required before allowing merges.

The classification label of the project.

Whether to enable pull mirroring for the project or not.

Whether mirror updates trigger CI builds ir not.

Initialize the project with a readme.

The name of a template project to use.

The ID of the template project to use.

Whether to use a custom instance or group template.

Whether the package repository is enabled or not.

Whether to enable issues or not.

Whether to enable merge requests or not.

Whether to enable CI pipelines or not.

Whether to enable the wiki or not.

Whether to enable snippets or not.

Builds a new CreateProject.

Errors

If a required field has not been initialized.

Set the name of the project.

If not set, it will default to the value of path.

Set the path of the project.

If not set, it will default to the value of name after processing to make it a valid path.

👎Deprecated: use topic instead

Add a tag.

👎Deprecated: use topics instead

Add multiple tags.

Add a optic.

Add multiple topics.

Whether the template project should come from the group or the instance.

Note that setting this also sets use_custom_template to true automatically.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. 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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more