pub struct ProjectTemplate {
pub id: Option<i64>,
pub name: String,
pub description: Option<String>,
pub default_tags: Vec<String>,
pub default_goals: Vec<TemplateGoal>,
pub workspace_path: Option<PathBuf>,
pub created_at: DateTime<Utc>,
}Fields§
§id: Option<i64>§name: String§description: Option<String>§default_goals: Vec<TemplateGoal>§workspace_path: Option<PathBuf>§created_at: DateTime<Utc>Implementations§
Source§impl ProjectTemplate
impl ProjectTemplate
pub fn new(name: String) -> Self
pub fn with_description(self, description: String) -> Self
pub fn with_goals(self, goals: Vec<TemplateGoal>) -> Self
pub fn with_workspace_path(self, path: PathBuf) -> Self
Trait Implementations§
Source§impl Clone for ProjectTemplate
impl Clone for ProjectTemplate
Source§fn clone(&self) -> ProjectTemplate
fn clone(&self) -> ProjectTemplate
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 moreSource§impl Debug for ProjectTemplate
impl Debug for ProjectTemplate
Source§impl<'de> Deserialize<'de> for ProjectTemplate
impl<'de> Deserialize<'de> for ProjectTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProjectTemplate
impl PartialEq for ProjectTemplate
Source§impl Serialize for ProjectTemplate
impl Serialize for ProjectTemplate
impl StructuralPartialEq for ProjectTemplate
Auto Trait Implementations§
impl Freeze for ProjectTemplate
impl RefUnwindSafe for ProjectTemplate
impl Send for ProjectTemplate
impl Sync for ProjectTemplate
impl Unpin for ProjectTemplate
impl UnwindSafe for ProjectTemplate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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