[][src]Struct gitlab::api::projects::CreateProjectBuilder

pub struct CreateProjectBuilder<'a> { /* fields omitted */ }

Builder for CreateProject.

Implementations

impl<'a> CreateProjectBuilder<'a>[src]

pub fn namespace_id(&mut self, value: u64) -> &mut Self[src]

The namespace of the new project.

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

pub fn default_branch<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The default branch of the new project.

Defaults to master.

pub fn description<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The description of the new project.

pub fn issues_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self[src]

Set the access level for issues.

pub fn repository_access_level(
    &mut self,
    value: FeatureAccessLevel
) -> &mut Self
[src]

Set the access level for repository access.

pub fn merge_requests_access_level(
    &mut self,
    value: FeatureAccessLevel
) -> &mut Self
[src]

Set the access level for merge requests.

pub fn forking_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self[src]

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

pub fn builds_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self[src]

Set the access level for CI pipeline access.

pub fn wiki_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self[src]

Set the access level for access to view the wiki.

pub fn snippets_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self[src]

Set the access level for snippets.

pub fn pages_access_level(
    &mut self,
    value: FeatureAccessLevelPublic
) -> &mut Self
[src]

Set the access level for GitLab Pages on the project.

pub fn emails_disabled(&mut self, value: bool) -> &mut Self[src]

Whether to enable email notifications or not.

pub fn resolve_outdated_diff_discussions(&mut self, value: bool) -> &mut Self[src]

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

pub fn container_registry_enabled(&mut self, value: bool) -> &mut Self[src]

Whether the container registry is enabled or not.

pub fn container_expiration_policy_attributes(
    &mut self,
    value: ContainerExpirationPolicy<'a>
) -> &mut Self
[src]

The expiration policy for containers.

pub fn shared_runners_enabled(&mut self, value: bool) -> &mut Self[src]

Whether the project can use shared runners or not.

pub fn visibility(&mut self, value: VisibilityLevel) -> &mut Self[src]

The visibility level of the project.

pub fn import_url<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

A URL to import the repository from.

pub fn public_builds(&mut self, value: bool) -> &mut Self[src]

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

pub fn only_allow_merge_if_pipeline_succeeds(
    &mut self,
    value: bool
) -> &mut Self
[src]

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

pub fn only_allow_merge_if_all_discussions_are_resolved(
    &mut self,
    value: bool
) -> &mut Self
[src]

Whether all discussions must be resolved before merges are allowed.

pub fn merge_method(&mut self, value: MergeMethod) -> &mut Self[src]

The merge method to use for the project.

pub fn autoclose_referenced_issues(&mut self, value: bool) -> &mut Self[src]

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

pub fn remove_source_branch_after_merge(&mut self, value: bool) -> &mut Self[src]

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

pub fn lfs_enabled(&mut self, value: bool) -> &mut Self[src]

Whether git-lfs support should be enabled or not.

See the git-lfs website for more information.

pub fn request_access_enabled(&mut self, value: bool) -> &mut Self[src]

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.

pub fn build_git_strategy(&mut self, value: BuildGitStrategy) -> &mut Self[src]

The default Git strategy for CI jobs of the project.

pub fn build_timeout(&mut self, value: u64) -> &mut Self[src]

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

pub fn auto_cancel_pending_pipelines<VALUE: Into<EnableState>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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

pub fn build_coverage_regex<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The default regular expression to use for build coverage extraction.

pub fn ci_config_path<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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

Defaults to .gitlab-ci.yml.

pub fn auto_devops_enabled(&mut self, value: bool) -> &mut Self[src]

Whether Auto DevOps are enabled or not.

pub fn auto_devops_deploy_strategy(
    &mut self,
    value: AutoDevOpsDeployStrategy
) -> &mut Self
[src]

The Auto Deploy strategy of the project.

pub fn repository_storage<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The storage shard on which to store the repository.

pub fn approvals_before_merge(&mut self, value: u64) -> &mut Self[src]

How many approvals are required before allowing merges.

pub fn external_authorization_classification_label<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The classification label of the project.

pub fn mirror(&mut self, value: bool) -> &mut Self[src]

Whether to enable pull mirroring for the project or not.

pub fn mirror_trigger_builds(&mut self, value: bool) -> &mut Self[src]

Whether mirror updates trigger CI builds ir not.

pub fn initialize_with_readme(&mut self, value: bool) -> &mut Self[src]

Initialize the project with a readme.

pub fn template_name<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The name of a template project to use.

pub fn template_project_id(&mut self, value: u64) -> &mut Self[src]

The ID of the template project to use.

pub fn use_custom_template(&mut self, value: bool) -> &mut Self[src]

Whether to use a custom instance or group template.

pub fn packages_enabled(&mut self, value: bool) -> &mut Self[src]

Whether the package repository is enabled or not.

pub fn issues_enabled(&mut self, value: bool) -> &mut Self[src]

Whether to enable issues or not.

pub fn merge_requests_enabled(&mut self, value: bool) -> &mut Self[src]

Whether to enable merge requests or not.

pub fn jobs_enabled(&mut self, value: bool) -> &mut Self[src]

Whether to enable CI pipelines or not.

pub fn wiki_enabled(&mut self, value: bool) -> &mut Self[src]

Whether to enable the wiki or not.

pub fn snippets_enabled(&mut self, value: bool) -> &mut Self[src]

Whether to enable snippets or not.

pub fn build(&self) -> Result<CreateProject<'a>, String>[src]

Builds a new CreateProject.

Errors

If a required field has not been initialized.

impl<'a> CreateProjectBuilder<'a>[src]

pub fn name<N>(&mut self, name: N) -> &mut Self where
    N: Into<Cow<'a, str>>, 
[src]

Set the name of the project.

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

pub fn path<P>(&mut self, path: P) -> &mut Self where
    P: Into<Cow<'a, str>>, 
[src]

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.

pub fn tag<T>(&mut self, tag: T) -> &mut Self where
    T: Into<Cow<'a, str>>, 
[src]

Add a tag.

pub fn tags<I, T>(&mut self, iter: I) -> &mut Self where
    I: Iterator<Item = T>,
    T: Into<Cow<'a, str>>, 
[src]

Add multiple tags.

pub fn group_with_project_templates_id(&mut self, id: u64) -> &mut Self[src]

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

impl<'a> Clone for CreateProjectBuilder<'a>[src]

impl<'a> Default for CreateProjectBuilder<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.