Struct billecta::SwishPaymentStatus
source · pub struct SwishPaymentStatus {
pub payment_request_token: Option<String>,
pub status: SwishStatusType,
pub paid_date: Option<DateTime>,
pub created: DateTime,
pub amount: Option<Amount>,
pub refunded_amount: Option<Amount>,
pub error_message: Option<String>,
pub error_code: Option<String>,
}
Fields§
§payment_request_token: Option<String>
§status: SwishStatusType
§paid_date: Option<DateTime>
§created: DateTime
§amount: Option<Amount>
§refunded_amount: Option<Amount>
§error_message: Option<String>
§error_code: Option<String>
Implementations§
source§impl SwishPaymentStatus
impl SwishPaymentStatus
pub fn new(status: SwishStatusType, created: DateTime) -> Self
Trait Implementations§
source§impl Clone for SwishPaymentStatus
impl Clone for SwishPaymentStatus
source§fn clone(&self) -> SwishPaymentStatus
fn clone(&self) -> SwishPaymentStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SwishPaymentStatus
impl Debug for SwishPaymentStatus
source§impl<'de> Deserialize<'de> for SwishPaymentStatus
impl<'de> Deserialize<'de> for SwishPaymentStatus
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 SwishPaymentStatus
impl RefUnwindSafe for SwishPaymentStatus
impl Send for SwishPaymentStatus
impl Sync for SwishPaymentStatus
impl Unpin for SwishPaymentStatus
impl UnwindSafe for SwishPaymentStatus
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