pub struct GenericCurrencyAmountField {
pub currency: String,
pub amount: f64,
}
Expand description
Generic Currency Amount Field
Used for fields with currency code and decimal amount.
Fields§
§currency: String
Currency code (ISO 4217)
amount: f64
Amount value
Implementations§
Source§impl GenericCurrencyAmountField
impl GenericCurrencyAmountField
Sourcepub fn from_raw(content: &str) -> Result<Self, ParseError>
pub fn from_raw(content: &str) -> Result<Self, ParseError>
Parse from raw string content
Trait Implementations§
Source§impl Clone for GenericCurrencyAmountField
impl Clone for GenericCurrencyAmountField
Source§fn clone(&self) -> GenericCurrencyAmountField
fn clone(&self) -> GenericCurrencyAmountField
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GenericCurrencyAmountField
impl Debug for GenericCurrencyAmountField
Source§impl<'de> Deserialize<'de> for GenericCurrencyAmountField
impl<'de> Deserialize<'de> for GenericCurrencyAmountField
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 GenericCurrencyAmountField
impl Display for GenericCurrencyAmountField
Source§impl PartialEq for GenericCurrencyAmountField
impl PartialEq for GenericCurrencyAmountField
Source§fn eq(&self, other: &GenericCurrencyAmountField) -> bool
fn eq(&self, other: &GenericCurrencyAmountField) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl SwiftField for GenericCurrencyAmountField
impl SwiftField for GenericCurrencyAmountField
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 StructuralPartialEq for GenericCurrencyAmountField
Auto Trait Implementations§
impl Freeze for GenericCurrencyAmountField
impl RefUnwindSafe for GenericCurrencyAmountField
impl Send for GenericCurrencyAmountField
impl Sync for GenericCurrencyAmountField
impl Unpin for GenericCurrencyAmountField
impl UnwindSafe for GenericCurrencyAmountField
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