pub struct ApprovalRecord {Show 15 fields
pub approval_id: String,
pub document_number: String,
pub document_type: String,
pub company_code: String,
pub requester_id: String,
pub requester_name: Option<String>,
pub approver_id: String,
pub approver_name: String,
pub approval_date: NaiveDate,
pub action: String,
pub amount: Decimal,
pub approval_limit: Option<Decimal>,
pub comments: Option<String>,
pub delegation_from: Option<String>,
pub is_auto_approved: bool,
}Expand description
Individual approval record for tracking approval relationships.
Fields§
§approval_id: StringUnique approval record ID
document_number: StringDocument being approved
document_type: StringDocument type
company_code: StringCompany code
requester_id: StringRequester’s user ID
requester_name: Option<String>Requester’s name (optional)
approver_id: StringApprover’s user ID
approver_name: StringApprover’s name
approval_date: NaiveDateApproval date
action: StringApproval action taken
amount: DecimalAmount being approved
approval_limit: Option<Decimal>Approver’s approval limit (if any)
comments: Option<String>Comments/notes
delegation_from: Option<String>If delegated, from whom
is_auto_approved: boolWhether this was auto-approved
Implementations§
Trait Implementations§
Source§impl Clone for ApprovalRecord
impl Clone for ApprovalRecord
Source§fn clone(&self) -> ApprovalRecord
fn clone(&self) -> ApprovalRecord
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 ApprovalRecord
impl Debug for ApprovalRecord
Source§impl<'de> Deserialize<'de> for ApprovalRecord
impl<'de> Deserialize<'de> for ApprovalRecord
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
Auto Trait Implementations§
impl Freeze for ApprovalRecord
impl RefUnwindSafe for ApprovalRecord
impl Send for ApprovalRecord
impl Sync for ApprovalRecord
impl Unpin for ApprovalRecord
impl UnwindSafe for ApprovalRecord
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