pub struct Field23B {
pub bank_operation_code: String,
}
Expand description
Field 23B: Bank Operation Code
Fields§
§bank_operation_code: String
Bank operation code (exactly 4 characters)
Implementations§
Source§impl Field23B
impl Field23B
pub const SPAY: &'static str = "SPAY"
pub const SSBE: &'static str = "SSBE"
pub const SUPP: &'static str = "SUPP"
pub const CORT: &'static str = "CORT"
pub const REPA: &'static str = "REPA"
pub const INTC: &'static str = "INTC"
pub const TRAD: &'static str = "TRAD"
pub const TREA: &'static str = "TREA"
Sourcepub fn new(bank_operation_code: impl Into<String>) -> Result<Self>
pub fn new(bank_operation_code: impl Into<String>) -> Result<Self>
Create a new Field23B with validation
Sourcepub fn is_credit_transfer(&self) -> bool
pub fn is_credit_transfer(&self) -> bool
Check if this is a credit transfer operation
Sourcepub fn is_salary_payment(&self) -> bool
pub fn is_salary_payment(&self) -> bool
Check if this is a salary payment
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get a human-readable description of the operation code
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field23B
impl<'de> Deserialize<'de> for Field23B
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 SwiftField for Field23B
impl SwiftField for Field23B
Source§fn to_swift_string(&self) -> String
fn to_swift_string(&self) -> String
Serialize field back to SWIFT format
Source§fn validate(&self, rules: &FormatRules) -> Result<(), ValidationError>
fn validate(&self, rules: &FormatRules) -> Result<(), ValidationError>
Validate field content according to SWIFT rules
Source§fn description() -> &'static str
fn description() -> &'static str
Get field description for documentation/debugging
Source§fn is_mandatory_for_message_type(message_type: &str) -> bool
fn is_mandatory_for_message_type(message_type: &str) -> bool
Check if field is mandatory for a specific message type
impl Eq for Field23B
impl StructuralPartialEq for Field23B
Auto Trait Implementations§
impl Freeze for Field23B
impl RefUnwindSafe for Field23B
impl Send for Field23B
impl Sync for Field23B
impl Unpin for Field23B
impl UnwindSafe for Field23B
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