pub struct SwiftBusinessError {
pub code: String,
pub field: String,
pub related_fields: Vec<String>,
pub message: String,
pub rule_description: String,
pub context: Option<String>,
}Expand description
C-Series: Conditional/Business Rules Error
Fields§
§code: StringSWIFT error code (e.g., “C02”, “C81”)
field: StringPrimary field tag involved
Related field tags for cross-field validation
message: StringHuman-readable error message
rule_description: StringBusiness rule that was violated
context: Option<String>Additional context for error recovery
Trait Implementations§
Source§impl Clone for SwiftBusinessError
impl Clone for SwiftBusinessError
Source§fn clone(&self) -> SwiftBusinessError
fn clone(&self) -> SwiftBusinessError
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 moreSource§impl Debug for SwiftBusinessError
impl Debug for SwiftBusinessError
Source§impl<'de> Deserialize<'de> for SwiftBusinessError
impl<'de> Deserialize<'de> for SwiftBusinessError
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 Display for SwiftBusinessError
impl Display for SwiftBusinessError
Source§impl Error for SwiftBusinessError
impl Error for SwiftBusinessError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SwiftBusinessError
impl RefUnwindSafe for SwiftBusinessError
impl Send for SwiftBusinessError
impl Sync for SwiftBusinessError
impl Unpin for SwiftBusinessError
impl UnsafeUnpin for SwiftBusinessError
impl UnwindSafe for SwiftBusinessError
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