pub struct CancelPaymentSessionRequest {
pub cancellation_reason: Option<String>,
}Expand description
A request to cancel a payment session.
JSON schema
{
"description": "A request to cancel a payment session.",
"type": "object",
"properties": {
"cancellationReason": {
"description": "The reason for cancelling the payment session.",
"examples": [
"Customer requested cancellation."
],
"type": "string"
}
}
}Fields§
§cancellation_reason: Option<String>The reason for cancelling the payment session.
Implementations§
Trait Implementations§
Source§impl Clone for CancelPaymentSessionRequest
impl Clone for CancelPaymentSessionRequest
Source§impl Debug for CancelPaymentSessionRequest
impl Debug for CancelPaymentSessionRequest
Source§impl<'de> Deserialize<'de> for CancelPaymentSessionRequest
impl<'de> Deserialize<'de> for CancelPaymentSessionRequest
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 From<&CancelPaymentSessionRequest> for CancelPaymentSessionRequest
impl From<&CancelPaymentSessionRequest> for CancelPaymentSessionRequest
Source§fn from(value: &CancelPaymentSessionRequest) -> Self
fn from(value: &CancelPaymentSessionRequest) -> Self
Converts to this type from the input type.
Source§impl From<CancelPaymentSessionRequest> for CancelPaymentSessionRequest
impl From<CancelPaymentSessionRequest> for CancelPaymentSessionRequest
Source§fn from(value: CancelPaymentSessionRequest) -> Self
fn from(value: CancelPaymentSessionRequest) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CancelPaymentSessionRequest> for CancelPaymentSessionRequest
impl TryFrom<CancelPaymentSessionRequest> for CancelPaymentSessionRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CancelPaymentSessionRequest) -> Result<Self, ConversionError>
fn try_from(value: CancelPaymentSessionRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CancelPaymentSessionRequest
impl RefUnwindSafe for CancelPaymentSessionRequest
impl Send for CancelPaymentSessionRequest
impl Sync for CancelPaymentSessionRequest
impl Unpin for CancelPaymentSessionRequest
impl UnsafeUnpin for CancelPaymentSessionRequest
impl UnwindSafe for CancelPaymentSessionRequest
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