pub struct ProjectCreateBuilder { /* private fields */ }Expand description
Builder for ProjectCreate.
Implementations§
Source§impl ProjectCreateBuilder
impl ProjectCreateBuilder
Sourcepub fn description<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
pub fn description<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
The description of the project.
Sourcepub fn domain_id<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
pub fn domain_id<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
The ID of the domain for the project.
Sourcepub fn enabled<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
pub fn enabled<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
If set to true, project is enabled. If set to false, project is
disabled. The defaults is true.
Sourcepub fn extra<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
pub fn extra<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
Additional project properties.
Sourcepub fn is_domain<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
pub fn is_domain<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
Indicates whether the project also acts as a domain. If set to true, this project acts as both a project and domain. As a domain, the project provides a name space in which you can create users, groups, and other projects. If set to false, this project behaves as a regular project that contains only resources. Default is false. You cannot update this parameter after you create the project.
Sourcepub fn name<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
pub fn name<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
The name of the project, which must be unique within the owning domain. A project can have the same name as its domain.
Sourcepub fn parent_id<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
pub fn parent_id<VALUE>(&mut self, value: VALUE) -> &mut ProjectCreateBuilder
The ID of the parent of the project.
If specified on project creation, this places the project within a
hierarchy and implicitly defines the owning domain, which will be the
same domain as the parent specified. If parent_id is not specified and
is_domain is false, then the project will use its owning domain as its
parent. If is_domain is true (i.e. the project is acting as a domain),
then parent_id must not specified (or if it is, it must be null) since
domains have no parents.
parent_id is immutable, and can’t be updated after the project is
created - hence a project cannot be moved within the hierarchy.
Sourcepub fn build(&self) -> Result<ProjectCreate, BuilderError>
pub fn build(&self) -> Result<ProjectCreate, BuilderError>
Trait Implementations§
Source§impl Clone for ProjectCreateBuilder
impl Clone for ProjectCreateBuilder
Source§fn clone(&self) -> ProjectCreateBuilder
fn clone(&self) -> ProjectCreateBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ProjectCreateBuilder
impl Default for ProjectCreateBuilder
Source§fn default() -> ProjectCreateBuilder
fn default() -> ProjectCreateBuilder
Auto Trait Implementations§
impl Freeze for ProjectCreateBuilder
impl RefUnwindSafe for ProjectCreateBuilder
impl Send for ProjectCreateBuilder
impl Sync for ProjectCreateBuilder
impl Unpin for ProjectCreateBuilder
impl UnsafeUnpin for ProjectCreateBuilder
impl UnwindSafe for ProjectCreateBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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