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

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

Builder for EditProject.

Implementations

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

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

The project to edit.

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

The name of the project.

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

The path of the project.

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

The default branch of the new project.

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 suggestion_commit_message<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The commit message to use for code suggestion commits.

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.

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 ci_default_git_depth(&mut self, value: u64) -> &mut Self[src]

The default number of revisions to fetch in CI jobs.

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_user_id(&mut self, value: u64) -> &mut Self[src]

User to attribute all mirror activity to.

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

Whether mirror updates trigger CI builds ir not.

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

Whether to only mirror protected branches or not.

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

Whether the mirror overwrites diverged branches in this project or not.

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

Whether the package repository is enabled or not.

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

Whether the service desk 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<EditProject<'a>, String>[src]

Builds a new EditProject.

Errors

If a required field has not been initialized.

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

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.

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for EditProjectBuilder<'a>

impl<'a> Send for EditProjectBuilder<'a>

impl<'a> Sync for EditProjectBuilder<'a>

impl<'a> Unpin for EditProjectBuilder<'a>

impl<'a> UnwindSafe for EditProjectBuilder<'a>

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.