pub struct ProjectDataBuilder { /* private fields */ }
Expand description
Builder for ProjectData
.
Implementations§
Source§impl ProjectDataBuilder
impl ProjectDataBuilder
pub fn id(self, value: u32) -> Self
pub fn name<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn slug<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn description(self, value: Option<String>) -> Self
pub fn icon(self, value: ProjectIcon) -> Self
pub fn color(self, value: ProjectColor) -> Self
pub fn phid(self, value: Phid) -> Self
pub fn space(self, value: Option<Space>) -> Self
pub fn created(self, value: u64) -> Self
pub fn modified(self, value: u64) -> Self
pub fn policy(self, value: ProjectPolicy) -> Self
pub fn columns(self, value: Mutex<Vec<Arc<ColumnData>>>) -> Self
Sourcepub fn data_build(self) -> Result<ProjectData, String>
pub fn data_build(self) -> Result<ProjectData, String>
Trait Implementations§
Source§impl Default for ProjectDataBuilder
impl Default for ProjectDataBuilder
Source§fn default() -> ProjectDataBuilder
fn default() -> ProjectDataBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ProjectDataBuilder
impl RefUnwindSafe for ProjectDataBuilder
impl Send for ProjectDataBuilder
impl Sync for ProjectDataBuilder
impl Unpin for ProjectDataBuilder
impl UnwindSafe for ProjectDataBuilder
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