pub struct CloseTaskResult {
pub task: CloseTask,
pub company_code: String,
pub fiscal_period: FiscalPeriod,
pub status: CloseTaskStatus,
pub started_at: Option<NaiveDate>,
pub completed_at: Option<NaiveDate>,
pub journal_entries_created: u32,
pub total_amount: Decimal,
pub notes: Vec<String>,
}Expand description
Result of executing a close task.
Fields§
§task: CloseTaskTask that was executed.
company_code: StringCompany code.
fiscal_period: FiscalPeriodFiscal period.
status: CloseTaskStatusStatus.
started_at: Option<NaiveDate>Start time.
completed_at: Option<NaiveDate>End time.
journal_entries_created: u32Journal entries created.
total_amount: DecimalTotal amount posted.
notes: Vec<String>Execution notes.
Implementations§
Source§impl CloseTaskResult
impl CloseTaskResult
Sourcepub fn new(
task: CloseTask,
company_code: String,
fiscal_period: FiscalPeriod,
) -> Self
pub fn new( task: CloseTask, company_code: String, fiscal_period: FiscalPeriod, ) -> Self
Creates a new task result.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true if the task completed successfully.
Trait Implementations§
Source§impl Clone for CloseTaskResult
impl Clone for CloseTaskResult
Source§fn clone(&self) -> CloseTaskResult
fn clone(&self) -> CloseTaskResult
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 moreAuto Trait Implementations§
impl Freeze for CloseTaskResult
impl RefUnwindSafe for CloseTaskResult
impl Send for CloseTaskResult
impl Sync for CloseTaskResult
impl Unpin for CloseTaskResult
impl UnwindSafe for CloseTaskResult
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