pub struct Field59F {
pub party_identifier: String,
pub name_and_address: Vec<String>,
}
Expand description
Field 59F: Beneficiary Customer (Option F)
Format: 35x (party identifier) + 4*(1!n/33x) (name and address)
This field specifies the beneficiary customer using a party identifier and structured name/address.
Fields§
§party_identifier: String
Party identifier (up to 35 characters)
name_and_address: Vec<String>
Name and address lines (up to 4 lines in format 1/Name, 2/Address, etc.)
Implementations§
Source§impl Field59F
impl Field59F
Sourcepub fn new(
party_identifier: impl Into<String>,
name_and_address: Vec<String>,
) -> Result<Self, ParseError>
pub fn new( party_identifier: impl Into<String>, name_and_address: Vec<String>, ) -> Result<Self, ParseError>
Create a new Field59F with validation
Sourcepub fn party_identifier(&self) -> &str
pub fn party_identifier(&self) -> &str
Get the party identifier
Sourcepub fn name_and_address(&self) -> &[String]
pub fn name_and_address(&self) -> &[String]
Get the name and address lines
Sourcepub fn name_address_line(&self, line_number: u8) -> Option<&str>
pub fn name_address_line(&self, line_number: u8) -> Option<&str>
Get a specific name/address line by line number (1-4)
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get human-readable description
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field59F
impl<'de> Deserialize<'de> for Field59F
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 Field59F
impl SwiftField for Field59F
Source§fn parse(content: &str) -> Result<Self, ParseError>
fn parse(content: &str) -> Result<Self, ParseError>
Parse field value from string representation
Source§fn to_swift_string(&self) -> String
fn to_swift_string(&self) -> String
Convert field back to SWIFT string format
Source§fn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
Validate field according to SWIFT format rules
Source§fn format_spec() -> &'static str
fn format_spec() -> &'static str
Get field format specification
impl Eq for Field59F
impl StructuralPartialEq for Field59F
Auto Trait Implementations§
impl Freeze for Field59F
impl RefUnwindSafe for Field59F
impl Send for Field59F
impl Sync for Field59F
impl Unpin for Field59F
impl UnwindSafe for Field59F
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