pub struct SettlementWarning {
pub severity: WarningSeverity,
pub code: &'static str,
pub message: String,
}Expand description
A non-blocking validation issue found during settlement calculation.
Warnings do not prevent the invoice from being generated but should be
reviewed before dispatch. The service layer may choose to block dispatch
on Severity::Error warnings.
Fields§
§severity: WarningSeveritySeverity: informational, warning, or error.
code: &'static strMachine-readable warning code.
message: StringHuman-readable description.
Trait Implementations§
Source§impl Clone for SettlementWarning
impl Clone for SettlementWarning
Source§fn clone(&self) -> SettlementWarning
fn clone(&self) -> SettlementWarning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SettlementWarning
impl RefUnwindSafe for SettlementWarning
impl Send for SettlementWarning
impl Sync for SettlementWarning
impl Unpin for SettlementWarning
impl UnsafeUnpin for SettlementWarning
impl UnwindSafe for SettlementWarning
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