pub struct Field50F {
pub party_identifier: String,
pub name_and_address: Vec<String>,
}
Expand description
Field 50F: Ordering Customer (Option F)
Format: Party identifier and name/address lines
Fields§
§party_identifier: String
Party identifier
name_and_address: Vec<String>
Name and address lines (up to 4 lines)
Implementations§
Source§impl Field50F
impl Field50F
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 Field50F 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
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field50F
impl<'de> Deserialize<'de> for Field50F
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 Field50F
impl SwiftField for Field50F
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 Field50F
impl StructuralPartialEq for Field50F
Auto Trait Implementations§
impl Freeze for Field50F
impl RefUnwindSafe for Field50F
impl Send for Field50F
impl Sync for Field50F
impl Unpin for Field50F
impl UnwindSafe for Field50F
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