pub struct Payment {Show 13 fields
pub id: String,
pub amount: f64,
pub payee_payment_reference: Option<String>,
pub payment_reference: Option<String>,
pub payer_alias: Option<String>,
pub payee_alias: Option<String>,
pub message: Option<String>,
pub status: Option<Status>,
pub date_created: String,
pub currency: Currency,
pub date_paid: Option<String>,
pub error_code: Option<String>,
pub error_message: Option<String>,
}Expand description
This is all the data that’s returned from the Swish API when fetching a payment.
Fields§
§id: String§amount: f64§payee_payment_reference: Option<String>§payment_reference: Option<String>§payer_alias: Option<String>§payee_alias: Option<String>§message: Option<String>§status: Option<Status>§date_created: String§currency: Currency§date_paid: Option<String>§error_code: Option<String>§error_message: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Payment
impl<'de> Deserialize<'de> for Payment
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
Auto Trait Implementations§
impl Freeze for Payment
impl RefUnwindSafe for Payment
impl Send for Payment
impl Sync for Payment
impl Unpin for Payment
impl UnwindSafe for Payment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more