Struct redmine_api::api::projects::CreateProjectBuilder
source · 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 copy 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> 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