pub struct MintQuoteChange {
pub payments: Option<Vec<IncomingPayment>>,
pub issuances: Option<Vec<Amount>>,
}Expand description
Tracks pending changes made to a MintQuote that need to be persisted.
This struct implements a change-tracking pattern that separates domain logic from
persistence concerns. When modifications are made to a MintQuote via methods like
MintQuote::add_payment or MintQuote::add_issuance, the changes are recorded
here rather than being immediately persisted. The database layer can then call
MintQuote::take_changes to retrieve and persist only the modifications.
This approach allows business rule validation to happen in the domain model while keeping the database layer focused purely on persistence.
Fields§
§payments: Option<Vec<IncomingPayment>>New payments added since the quote was loaded or last persisted.
issuances: Option<Vec<Amount>>New issuance amounts recorded since the quote was loaded or last persisted.
Trait Implementations§
Source§impl Clone for MintQuoteChange
impl Clone for MintQuoteChange
Source§fn clone(&self) -> MintQuoteChange
fn clone(&self) -> MintQuoteChange
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 MintQuoteChange
impl Debug for MintQuoteChange
Source§impl Default for MintQuoteChange
impl Default for MintQuoteChange
Source§fn default() -> MintQuoteChange
fn default() -> MintQuoteChange
Returns the “default value” for a type. Read more
Source§impl Hash for MintQuoteChange
impl Hash for MintQuoteChange
Source§impl PartialEq for MintQuoteChange
impl PartialEq for MintQuoteChange
impl Eq for MintQuoteChange
impl StructuralPartialEq for MintQuoteChange
Auto Trait Implementations§
impl Freeze for MintQuoteChange
impl RefUnwindSafe for MintQuoteChange
impl Send for MintQuoteChange
impl Sync for MintQuoteChange
impl Unpin for MintQuoteChange
impl UnsafeUnpin for MintQuoteChange
impl UnwindSafe for MintQuoteChange
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