pub struct PrepareOpts {
pub today: Option<NaiveDate>,
pub operator: Option<String>,
pub note: Option<String>,
pub now: Option<DateTime<Utc>>,
pub period_id: Option<String>,
}Expand description
Options for prepare. Only today is required; the rest are
agent-supplied metadata.
Fields§
§today: Option<NaiveDate>§operator: Option<String>§note: Option<String>§now: Option<DateTime<Utc>>§period_id: Option<String>Operator-supplied period claim. None means derive from today —
period_id records the calendar period the work was performed in.
Trait Implementations§
Source§impl Clone for PrepareOpts
impl Clone for PrepareOpts
Source§fn clone(&self) -> PrepareOpts
fn clone(&self) -> PrepareOpts
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 PrepareOpts
impl Debug for PrepareOpts
Source§impl Default for PrepareOpts
impl Default for PrepareOpts
Source§fn default() -> PrepareOpts
fn default() -> PrepareOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrepareOpts
impl RefUnwindSafe for PrepareOpts
impl Send for PrepareOpts
impl Sync for PrepareOpts
impl Unpin for PrepareOpts
impl UnsafeUnpin for PrepareOpts
impl UnwindSafe for PrepareOpts
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