Struct gitlab::api::projects::EditProjectBuilder
source · pub struct EditProjectBuilder<'a> { /* private fields */ }
Expand description
Builder for EditProject
.
Implementations§
source§impl<'a> EditProjectBuilder<'a>
impl<'a> EditProjectBuilder<'a>
sourcepub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The project to edit.
sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The name of the project.
sourcepub fn path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The path of the project.
sourcepub fn default_branch<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn default_branch<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The default branch of the new project.
sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The description of the new project.
sourcepub fn issues_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
pub fn issues_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
Set the access level for issues.
sourcepub fn repository_access_level(
&mut self,
value: FeatureAccessLevel
) -> &mut Self
pub fn repository_access_level( &mut self, value: FeatureAccessLevel ) -> &mut Self
Set the access level for repository access.
sourcepub fn container_registry_access_level(
&mut self,
value: FeatureAccessLevel
) -> &mut Self
pub fn container_registry_access_level( &mut self, value: FeatureAccessLevel ) -> &mut Self
Set the access level for container registry access.
sourcepub fn merge_requests_access_level(
&mut self,
value: FeatureAccessLevel
) -> &mut Self
pub fn merge_requests_access_level( &mut self, value: FeatureAccessLevel ) -> &mut Self
Set the access level for merge requests.
sourcepub fn forking_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
pub fn forking_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
Set the access level for making a fork of the project.
sourcepub fn builds_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
pub fn builds_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
Set the access level for CI pipeline access.
sourcepub fn wiki_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
pub fn wiki_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
Set the access level for access to view the wiki.
sourcepub fn snippets_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
pub fn snippets_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
Set the access level for snippets.
sourcepub fn pages_access_level(
&mut self,
value: FeatureAccessLevelPublic
) -> &mut Self
pub fn pages_access_level( &mut self, value: FeatureAccessLevelPublic ) -> &mut Self
Set the access level for GitLab Pages on the project.
sourcepub fn operations_access_level(
&mut self,
value: FeatureAccessLevel
) -> &mut Self
pub fn operations_access_level( &mut self, value: FeatureAccessLevel ) -> &mut Self
Set the access level for operations features.
sourcepub fn requirements_access_level(
&mut self,
value: FeatureAccessLevel
) -> &mut Self
pub fn requirements_access_level( &mut self, value: FeatureAccessLevel ) -> &mut Self
Set the access level for requirements features.
sourcepub fn analytics_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
pub fn analytics_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
Set the access level for analytics features.
sourcepub fn security_and_compliance_access_level(
&mut self,
value: FeatureAccessLevel
) -> &mut Self
pub fn security_and_compliance_access_level( &mut self, value: FeatureAccessLevel ) -> &mut Self
Set the access level for security and compliance features.
sourcepub fn releases_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
pub fn releases_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
Set the access level for release access.
sourcepub fn environments_access_level(
&mut self,
value: FeatureAccessLevel
) -> &mut Self
pub fn environments_access_level( &mut self, value: FeatureAccessLevel ) -> &mut Self
Set the access level for environment access.
sourcepub fn feature_flags_access_level(
&mut self,
value: FeatureAccessLevel
) -> &mut Self
pub fn feature_flags_access_level( &mut self, value: FeatureAccessLevel ) -> &mut Self
Set the access level for feature flag access.
sourcepub fn infrastructure_access_level(
&mut self,
value: FeatureAccessLevel
) -> &mut Self
pub fn infrastructure_access_level( &mut self, value: FeatureAccessLevel ) -> &mut Self
Set the access level for infrastructure access.
sourcepub fn monitor_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
pub fn monitor_access_level(&mut self, value: FeatureAccessLevel) -> &mut Self
Set the access level for monitoring access.
sourcepub fn model_experiments_access_level(
&mut self,
value: FeatureAccessLevel
) -> &mut Self
pub fn model_experiments_access_level( &mut self, value: FeatureAccessLevel ) -> &mut Self
Set the access level for model experiment access.
sourcepub fn emails_disabled(&mut self, value: bool) -> &mut Self
pub fn emails_disabled(&mut self, value: bool) -> &mut Self
Whether to enable email notifications or not.
sourcepub fn emails_enabled(&mut self, value: bool) -> &mut Self
pub fn emails_enabled(&mut self, value: bool) -> &mut Self
Whether to enable email notifications or not.
sourcepub fn show_default_award_emojis(&mut self, value: bool) -> &mut Self
pub fn show_default_award_emojis(&mut self, value: bool) -> &mut Self
Whether the default set of award emojis are shown for this project.
sourcepub fn restrict_user_defined_variables(&mut self, value: bool) -> &mut Self
pub fn restrict_user_defined_variables(&mut self, value: bool) -> &mut Self
Whether to allow non-members to set pipeline variables when triggering piplines or not.
sourcepub fn resolve_outdated_diff_discussions(&mut self, value: bool) -> &mut Self
pub fn resolve_outdated_diff_discussions(&mut self, value: bool) -> &mut Self
Whether outdated diff discussions are resolved when a merge request is updated or not.
sourcepub fn container_registry_enabled(&mut self, value: bool) -> &mut Self
pub fn container_registry_enabled(&mut self, value: bool) -> &mut Self
Whether the container registry is enabled or not.
sourcepub fn container_expiration_policy_attributes(
&mut self,
value: ContainerExpirationPolicy<'a>
) -> &mut Self
pub fn container_expiration_policy_attributes( &mut self, value: ContainerExpirationPolicy<'a> ) -> &mut Self
The expiration policy for containers.
Whether the project can use shared runners or not.
sourcepub fn visibility(&mut self, value: VisibilityLevel) -> &mut Self
pub fn visibility(&mut self, value: VisibilityLevel) -> &mut Self
The visibility level of the project.
sourcepub fn import_url<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn import_url<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
A URL to import the repository from.
sourcepub fn public_builds(&mut self, value: bool) -> &mut Self
pub fn public_builds(&mut self, value: bool) -> &mut Self
Whether job results are visible to non-project members or not.
sourcepub fn only_allow_merge_if_pipeline_succeeds(
&mut self,
value: bool
) -> &mut Self
pub fn only_allow_merge_if_pipeline_succeeds( &mut self, value: bool ) -> &mut Self
Whether the CI pipeline is required to succeed before merges are allowed.
sourcepub fn allow_merge_on_skipped_pipeline(&mut self, value: bool) -> &mut Self
pub fn allow_merge_on_skipped_pipeline(&mut self, value: bool) -> &mut Self
Whether the CI pipeline can be skipped before merges are allowed.
sourcepub fn only_allow_merge_if_all_discussions_are_resolved(
&mut self,
value: bool
) -> &mut Self
pub fn only_allow_merge_if_all_discussions_are_resolved( &mut self, value: bool ) -> &mut Self
Whether all discussions must be resolved before merges are allowed.
sourcepub fn only_allow_merge_if_all_status_checks_passed(
&mut self,
value: bool
) -> &mut Self
pub fn only_allow_merge_if_all_status_checks_passed( &mut self, value: bool ) -> &mut Self
If true
, merge requests may not be merged unless all status checks are passing.
sourcepub fn merge_commit_template<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn merge_commit_template<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The merge commit template.
sourcepub fn squash_commit_template<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn squash_commit_template<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The squash merge commit template.
sourcepub fn issues_template<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn issues_template<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The default description for issues.
sourcepub fn merge_requests_template<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn merge_requests_template<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The default description for issues.
sourcepub fn merge_method(&mut self, value: MergeMethod) -> &mut Self
pub fn merge_method(&mut self, value: MergeMethod) -> &mut Self
The merge method to use for the project.
sourcepub fn squash_option(&mut self, value: SquashOption) -> &mut Self
pub fn squash_option(&mut self, value: SquashOption) -> &mut Self
The squash option for the project.
sourcepub fn merge_pipelines_enabled(&mut self, value: bool) -> &mut Self
pub fn merge_pipelines_enabled(&mut self, value: bool) -> &mut Self
Whether merge pipelines are enabled.
sourcepub fn merge_trains_enabled(&mut self, value: bool) -> &mut Self
pub fn merge_trains_enabled(&mut self, value: bool) -> &mut Self
Whether merge trains are enabled.
sourcepub fn mr_default_target_self(&mut self, value: bool) -> &mut Self
pub fn mr_default_target_self(&mut self, value: bool) -> &mut Self
Whether MRs default to targing this project or the upstream project.
sourcepub fn autoclose_referenced_issues(&mut self, value: bool) -> &mut Self
pub fn autoclose_referenced_issues(&mut self, value: bool) -> &mut Self
Whether issues referenced on the default branch should be closed or not.
sourcepub fn suggestion_commit_message<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn suggestion_commit_message<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The commit message to use for code suggestion commits.
sourcepub fn remove_source_branch_after_merge(&mut self, value: bool) -> &mut Self
pub fn remove_source_branch_after_merge(&mut self, value: bool) -> &mut Self
Whether to enabled the “Remove source branch” option in new merge requests by default or not.
sourcepub fn prevent_merge_without_jira_issue(&mut self, value: bool) -> &mut Self
pub fn prevent_merge_without_jira_issue(&mut self, value: bool) -> &mut Self
Whether merge requests require an associated Jira issue or not.
sourcepub fn printing_merge_request_link_enabled(&mut self, value: bool) -> &mut Self
pub fn printing_merge_request_link_enabled(&mut self, value: bool) -> &mut Self
Whether to enable print merge request links if branch/commits are pushed by console
sourcepub fn lfs_enabled(&mut self, value: bool) -> &mut Self
pub fn lfs_enabled(&mut self, value: bool) -> &mut Self
Whether git-lfs
support should be enabled or not.
See the git-lfs website for more information.
sourcepub fn request_access_enabled(&mut self, value: bool) -> &mut Self
pub fn request_access_enabled(&mut self, value: bool) -> &mut Self
Whether users may request access to the repository or not.
sourcepub fn build_git_strategy(&mut self, value: BuildGitStrategy) -> &mut Self
pub fn build_git_strategy(&mut self, value: BuildGitStrategy) -> &mut Self
The default Git strategy for CI jobs of the project.
sourcepub fn build_timeout(&mut self, value: u64) -> &mut Self
pub fn build_timeout(&mut self, value: u64) -> &mut Self
The default timeout for jobs of the project (in seconds).
sourcepub fn auto_cancel_pending_pipelines<VALUE: Into<EnableState>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn auto_cancel_pending_pipelines<VALUE: Into<EnableState>>( &mut self, value: VALUE ) -> &mut Self
Whether to automatically cancel pipelines when branches are updated when using a previous version of the branch.
sourcepub fn build_coverage_regex<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn build_coverage_regex<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The default regular expression to use for build coverage extraction.
sourcepub fn ci_config_path<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn ci_config_path<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The path to the GitLab CI configuration file within the repository.
Defaults to .gitlab-ci.yml
.
sourcepub fn ci_default_git_depth(&mut self, value: u64) -> &mut Self
pub fn ci_default_git_depth(&mut self, value: u64) -> &mut Self
The default number of revisions to fetch in CI jobs.
sourcepub fn ci_forward_deployment_enabled(&mut self, value: bool) -> &mut Self
pub fn ci_forward_deployment_enabled(&mut self, value: bool) -> &mut Self
Whether to skip pending deployment jobs when a newer one is started.
sourcepub fn auto_devops_enabled(&mut self, value: bool) -> &mut Self
pub fn auto_devops_enabled(&mut self, value: bool) -> &mut Self
Whether Auto DevOps are enabled or not.
sourcepub fn auto_devops_deploy_strategy(
&mut self,
value: AutoDevOpsDeployStrategy
) -> &mut Self
pub fn auto_devops_deploy_strategy( &mut self, value: AutoDevOpsDeployStrategy ) -> &mut Self
The Auto Deploy strategy of the project.
sourcepub fn repository_storage<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn repository_storage<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The storage shard on which to store the repository.
sourcepub fn approvals_before_merge(&mut self, value: u64) -> &mut Self
pub fn approvals_before_merge(&mut self, value: u64) -> &mut Self
How many approvals are required before allowing merges.
The classification label of the project.
sourcepub fn mirror(&mut self, value: bool) -> &mut Self
pub fn mirror(&mut self, value: bool) -> &mut Self
Whether to enable pull mirroring for the project or not.
sourcepub fn mirror_user_id(&mut self, value: u64) -> &mut Self
pub fn mirror_user_id(&mut self, value: u64) -> &mut Self
User to attribute all mirror activity to.
sourcepub fn mirror_trigger_builds(&mut self, value: bool) -> &mut Self
pub fn mirror_trigger_builds(&mut self, value: bool) -> &mut Self
Whether mirror updates trigger CI builds ir not.
sourcepub fn only_mirror_protected_branches(&mut self, value: bool) -> &mut Self
pub fn only_mirror_protected_branches(&mut self, value: bool) -> &mut Self
Whether to only mirror protected branches or not.
sourcepub fn mirror_overwrites_diverged_branches(&mut self, value: bool) -> &mut Self
pub fn mirror_overwrites_diverged_branches(&mut self, value: bool) -> &mut Self
Whether the mirror overwrites diverged branches in this project or not.
sourcepub fn mirror_branch_regex<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn mirror_branch_regex<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
Regular expression for branches to mirror.
sourcepub fn packages_enabled(&mut self, value: bool) -> &mut Self
pub fn packages_enabled(&mut self, value: bool) -> &mut Self
Whether the package repository is enabled or not.
sourcepub fn group_runners_enabled(&mut self, value: bool) -> &mut Self
pub fn group_runners_enabled(&mut self, value: bool) -> &mut Self
Whether group runners are enabled for this project or not.
sourcepub fn service_desk_enabled(&mut self, value: bool) -> &mut Self
pub fn service_desk_enabled(&mut self, value: bool) -> &mut Self
Whether the service desk is enabled or not.
sourcepub fn keep_latest_artifact(&mut self, value: bool) -> &mut Self
pub fn keep_latest_artifact(&mut self, value: bool) -> &mut Self
Whether to keep the latest artifact for pipelines or not.
sourcepub fn ci_separated_caches(&mut self, value: bool) -> &mut Self
pub fn ci_separated_caches(&mut self, value: bool) -> &mut Self
Whether to or not caches should be separated based on branch protection status or not.
sourcepub fn ci_allow_fork_pipelines_to_run_in_parent_project(
&mut self,
value: bool
) -> &mut Self
pub fn ci_allow_fork_pipelines_to_run_in_parent_project( &mut self, value: bool ) -> &mut Self
Whether to allow pipelines for MRs from forks to run in this project or not.
sourcepub fn enforce_auth_checks_on_uploads(&mut self, value: bool) -> &mut Self
pub fn enforce_auth_checks_on_uploads(&mut self, value: bool) -> &mut Self
Whether to enforce authorization checks on uploads or not.
sourcepub fn issue_branch_template<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn issue_branch_template<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE ) -> &mut Self
The template for branch names when starting based on an issue.
sourcepub fn allow_pipeline_trigger_approve_deployment(
&mut self,
value: bool
) -> &mut Self
pub fn allow_pipeline_trigger_approve_deployment( &mut self, value: bool ) -> &mut Self
Whether to allow triggered pipelines to approve deployments or not.
sourcepub fn ci_forward_deployment_rollback_allowed(
&mut self,
value: bool
) -> &mut Self
pub fn ci_forward_deployment_rollback_allowed( &mut self, value: bool ) -> &mut Self
Whether environments can be rolled back or not.
sourcepub fn issues_enabled(&mut self, value: bool) -> &mut Self
pub fn issues_enabled(&mut self, value: bool) -> &mut Self
Whether to enable issues or not.
sourcepub fn merge_requests_enabled(&mut self, value: bool) -> &mut Self
pub fn merge_requests_enabled(&mut self, value: bool) -> &mut Self
Whether to enable merge requests or not.
sourcepub fn jobs_enabled(&mut self, value: bool) -> &mut Self
pub fn jobs_enabled(&mut self, value: bool) -> &mut Self
Whether to enable CI pipelines or not.
sourcepub fn wiki_enabled(&mut self, value: bool) -> &mut Self
pub fn wiki_enabled(&mut self, value: bool) -> &mut Self
Whether to enable the wiki or not.
sourcepub fn snippets_enabled(&mut self, value: bool) -> &mut Self
pub fn snippets_enabled(&mut self, value: bool) -> &mut Self
Whether to enable snippets or not.
sourcepub fn build(&self) -> Result<EditProject<'a>, EditProjectBuilderError>
pub fn build(&self) -> Result<EditProject<'a>, EditProjectBuilderError>
source§impl<'a> EditProjectBuilder<'a>
impl<'a> EditProjectBuilder<'a>
👎Deprecated: use topics
instead
topics
insteadAdd multiple tags.
sourcepub fn printing_merge_requests_link_enabled(
&mut self,
enable: bool
) -> &mut Self
👎Deprecated: use printing_merge_request_link_enabled
instead
pub fn printing_merge_requests_link_enabled( &mut self, enable: bool ) -> &mut Self
printing_merge_request_link_enabled
insteadWhether to enable print merge request links if branch/commits are pushed by console
This was a typo previously; use printing_merge_request_link_enabled
instead.
Trait Implementations§
source§impl<'a> Clone for EditProjectBuilder<'a>
impl<'a> Clone for EditProjectBuilder<'a>
source§fn clone(&self) -> EditProjectBuilder<'a>
fn clone(&self) -> EditProjectBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for EditProjectBuilder<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more