pub enum PrepareResponse {
PaymentRequired(PaymentRequired),
ErrorEnvelope(ErrorEnvelope),
}Expand description
PrepareResponse
JSON schema
{
"oneOf": [
{
"$ref": "#/components/schemas/PaymentRequired"
},
{
"$ref": "#/components/schemas/ErrorEnvelope"
}
]
}Variants§
PaymentRequired(PaymentRequired)
ErrorEnvelope(ErrorEnvelope)
Trait Implementations§
Source§impl Clone for PrepareResponse
impl Clone for PrepareResponse
Source§fn clone(&self) -> PrepareResponse
fn clone(&self) -> PrepareResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PrepareResponse
impl Debug for PrepareResponse
Source§impl<'de> Deserialize<'de> for PrepareResponse
impl<'de> Deserialize<'de> for PrepareResponse
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<ErrorEnvelope> for PrepareResponse
impl From<ErrorEnvelope> for PrepareResponse
Source§fn from(value: ErrorEnvelope) -> Self
fn from(value: ErrorEnvelope) -> Self
Converts to this type from the input type.
Source§impl From<PaymentRequired> for PrepareResponse
impl From<PaymentRequired> for PrepareResponse
Source§fn from(value: PaymentRequired) -> Self
fn from(value: PaymentRequired) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrepareResponse
impl RefUnwindSafe for PrepareResponse
impl Send for PrepareResponse
impl Sync for PrepareResponse
impl Unpin for PrepareResponse
impl UnsafeUnpin for PrepareResponse
impl UnwindSafe for PrepareResponse
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