pub struct CreateProjectBuilder<'a> { /* private fields */ }
Expand description
Builder for CreateProject
.
Implementations§
Source§impl<'a> CreateProjectBuilder<'a>
impl<'a> CreateProjectBuilder<'a>
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 identifier<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn identifier<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
the identifier of the project as it appears in the URL
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 project description
Sourcepub fn homepage<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn homepage<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
the project homepage
Sourcepub fn is_public(&mut self, value: bool) -> &mut Self
pub fn is_public(&mut self, value: bool) -> &mut Self
is the project public (visible to anonymous users)
Sourcepub fn inherit_members(&mut self, value: bool) -> &mut Self
pub fn inherit_members(&mut self, value: bool) -> &mut Self
will the project inherit members from its ancestors
Sourcepub fn default_assigned_to_id(&mut self, value: u64) -> &mut Self
pub fn default_assigned_to_id(&mut self, value: u64) -> &mut Self
ID of the default user. It works only when the new project is a subproject and it inherits the members
Sourcepub fn default_version_id(&mut self, value: u64) -> &mut Self
pub fn default_version_id(&mut self, value: u64) -> &mut Self
ID of the default version. It works only with existing shared versions
Sourcepub fn tracker_ids(&mut self, value: Vec<u64>) -> &mut Self
pub fn tracker_ids(&mut self, value: Vec<u64>) -> &mut Self
trackers to enable in the project
Sourcepub fn enabled_module_names(&mut self, value: Vec<Cow<'a, str>>) -> &mut Self
pub fn enabled_module_names(&mut self, value: Vec<Cow<'a, str>>) -> &mut Self
modules to enable in the project
Sourcepub fn issue_custom_field_id(&mut self, value: Vec<u64>) -> &mut Self
pub fn issue_custom_field_id(&mut self, value: Vec<u64>) -> &mut Self
custom issue fields to enable in the project
Sourcepub fn custom_field_values(
&mut self,
value: HashMap<u64, Cow<'a, str>>,
) -> &mut Self
pub fn custom_field_values( &mut self, value: HashMap<u64, Cow<'a, str>>, ) -> &mut Self
values for custom fields
Sourcepub fn build(&self) -> Result<CreateProject<'a>, CreateProjectBuilderError>
pub fn build(&self) -> Result<CreateProject<'a>, CreateProjectBuilderError>
Trait Implementations§
Source§impl<'a> Clone for CreateProjectBuilder<'a>
impl<'a> Clone for CreateProjectBuilder<'a>
Source§fn clone(&self) -> CreateProjectBuilder<'a>
fn clone(&self) -> CreateProjectBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for CreateProjectBuilder<'a>
impl<'a> RefUnwindSafe for CreateProjectBuilder<'a>
impl<'a> Send for CreateProjectBuilder<'a>
impl<'a> Sync for CreateProjectBuilder<'a>
impl<'a> Unpin for CreateProjectBuilder<'a>
impl<'a> UnwindSafe for CreateProjectBuilder<'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
Mutably borrows from an owned value. Read more