pub struct OpeningLedger {
pub package_id: Id,
pub customer_id: CustomerId,
pub pet_id: PetId,
pub policy: Policy,
pub entries: Vec<LedgerEntry>,
}Expand description
Source-derived opening ledger used to create a reusable multi-session package ledger.
Fields§
§package_id: IdSource-derived package id carried by this training contract.
customer_id: CustomerIdSource-derived customer id carried by this training contract.
pet_id: PetIdPet receiving the grooming or care service.
policy: PolicySource-derived policy carried by this training contract.
entries: Vec<LedgerEntry>Source-derived entries carried by this training contract.
Trait Implementations§
Source§impl Clone for OpeningLedger
impl Clone for OpeningLedger
Source§fn clone(&self) -> OpeningLedger
fn clone(&self) -> OpeningLedger
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 OpeningLedger
impl Debug for OpeningLedger
Source§impl<'de> Deserialize<'de> for OpeningLedger
impl<'de> Deserialize<'de> for OpeningLedger
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 PartialEq for OpeningLedger
impl PartialEq for OpeningLedger
Source§impl Serialize for OpeningLedger
impl Serialize for OpeningLedger
impl Eq for OpeningLedger
impl StructuralPartialEq for OpeningLedger
Auto Trait Implementations§
impl Freeze for OpeningLedger
impl RefUnwindSafe for OpeningLedger
impl Send for OpeningLedger
impl Sync for OpeningLedger
impl Unpin for OpeningLedger
impl UnsafeUnpin for OpeningLedger
impl UnwindSafe for OpeningLedger
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