[][src]Struct iso20022::pain_001_001_10::ExchangeRate1

pub struct ExchangeRate1 {
    pub ctrct_id: Option<String>,
    pub rate_tp: Option<i32>,
    pub unit_ccy: Option<String>,
    pub xchg_rate: Option<f64>,
}

Fields

ctrct_id: Option<String>rate_tp: Option<i32>unit_ccy: Option<String>xchg_rate: Option<f64>

Methods

impl ExchangeRate1[src]

pub fn ctrct_id(&self) -> &str[src]

Returns the value of ctrct_id, or the default value if ctrct_id is unset.

pub fn rate_tp(&self) -> ExchangeRateType1Code[src]

Returns the enum value of rate_tp, or the default if the field is unset or set to an invalid enum value.

pub fn set_rate_tp(&mut self, value: ExchangeRateType1Code)[src]

Sets rate_tp to the provided enum value.

pub fn unit_ccy(&self) -> &str[src]

Returns the value of unit_ccy, or the default value if unit_ccy is unset.

pub fn xchg_rate(&self) -> f64[src]

Returns the value of xchg_rate, or the default value if xchg_rate is unset.

Trait Implementations

impl Clone for ExchangeRate1[src]

impl Debug for ExchangeRate1[src]

impl Default for ExchangeRate1[src]

impl Message for ExchangeRate1[src]

impl PartialEq<ExchangeRate1> for ExchangeRate1[src]

impl StructuralPartialEq for ExchangeRate1[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.