pub struct Refund {Show 14 fields
pub id: String,
pub amount: f64,
pub payer_payment_reference: Option<String>,
pub original_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>,
pub additional_information: Option<String>,
}
Expand description
This is all the data that’s returned from the Swish API when fetching a refund.
Fields§
§id: String
§amount: f64
§payer_payment_reference: Option<String>
§original_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>
§additional_information: Option<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Refund
impl<'de> Deserialize<'de> for Refund
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 Refund
impl RefUnwindSafe for Refund
impl Send for Refund
impl Sync for Refund
impl Unpin for Refund
impl UnwindSafe for Refund
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