pub struct FieldRule {
pub format: String,
pub description: String,
pub options: Option<HashMap<String, String>>,
pub mandatory_for: Vec<String>,
}
Expand description
Individual field validation rule
Fields§
§format: String
SWIFT format rule (e.g., “16x”, “6!n3!a15d”, “4*35x”)
description: String
Human-readable description of the field
options: Option<HashMap<String, String>>
Optional field options for fields like 50A, 50K, etc.
mandatory_for: Vec<String>
Message types where this field is mandatory
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldRule
impl<'de> Deserialize<'de> for FieldRule
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 FieldRule
impl RefUnwindSafe for FieldRule
impl Send for FieldRule
impl Sync for FieldRule
impl Unpin for FieldRule
impl UnwindSafe for FieldRule
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