pub enum DocumentStatus {
Draft,
Submitted,
PendingApproval,
Approved,
Rejected,
Released,
PartiallyProcessed,
Completed,
Cancelled,
Posted,
Cleared,
}Expand description
Document status in workflow.
Variants§
Draft
Draft/not yet released
Submitted
Submitted for approval
PendingApproval
Pending approval
Approved
Approved
Rejected
Rejected
Released
Released for processing
PartiallyProcessed
Partially processed
Completed
Fully processed/completed
Cancelled
Cancelled/voided
Posted
Posted to GL
Cleared
Cleared (for open items)
Implementations§
Source§impl DocumentStatus
impl DocumentStatus
Sourcepub fn is_editable(&self) -> bool
pub fn is_editable(&self) -> bool
Check if document can be modified.
Sourcepub fn can_cancel(&self) -> bool
pub fn can_cancel(&self) -> bool
Check if document can be cancelled.
Sourcepub fn needs_approval(&self) -> bool
pub fn needs_approval(&self) -> bool
Check if document needs approval.
Trait Implementations§
Source§impl Clone for DocumentStatus
impl Clone for DocumentStatus
Source§fn clone(&self) -> DocumentStatus
fn clone(&self) -> DocumentStatus
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 DocumentStatus
impl Debug for DocumentStatus
Source§impl Default for DocumentStatus
impl Default for DocumentStatus
Source§fn default() -> DocumentStatus
fn default() -> DocumentStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentStatus
impl<'de> Deserialize<'de> for DocumentStatus
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 Hash for DocumentStatus
impl Hash for DocumentStatus
Source§impl PartialEq for DocumentStatus
impl PartialEq for DocumentStatus
Source§impl Serialize for DocumentStatus
impl Serialize for DocumentStatus
impl Copy for DocumentStatus
impl Eq for DocumentStatus
impl StructuralPartialEq for DocumentStatus
Auto Trait Implementations§
impl Freeze for DocumentStatus
impl RefUnwindSafe for DocumentStatus
impl Send for DocumentStatus
impl Sync for DocumentStatus
impl Unpin for DocumentStatus
impl UnwindSafe for DocumentStatus
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.