pub struct NewCategory {
pub name: String,
pub category_group_id: Uuid,
pub note: Option<String>,
pub goal_target: Option<i64>,
pub goal_target_date: Option<NaiveDate>,
pub goal_needs_whole_amount: Option<bool>,
}Expand description
The category to create.
Fields§
§name: String§category_group_id: Uuid§note: Option<String>§goal_target: Option<i64>§goal_target_date: Option<NaiveDate>§goal_needs_whole_amount: Option<bool>Trait Implementations§
Source§impl Clone for NewCategory
impl Clone for NewCategory
Source§fn clone(&self) -> NewCategory
fn clone(&self) -> NewCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NewCategory
impl Debug for NewCategory
Source§impl PartialEq for NewCategory
impl PartialEq for NewCategory
Source§impl Serialize for NewCategory
impl Serialize for NewCategory
impl StructuralPartialEq for NewCategory
Auto Trait Implementations§
impl Freeze for NewCategory
impl RefUnwindSafe for NewCategory
impl Send for NewCategory
impl Sync for NewCategory
impl Unpin for NewCategory
impl UnsafeUnpin for NewCategory
impl UnwindSafe for NewCategory
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