pub struct CheckoutSessionResponse {
pub session_id: String,
pub url: String,
}Expand description
Checkout session response.
JSON schema
{
"title": "CheckoutSessionResponse",
"description": "Checkout session response.",
"type": "object",
"required": [
"session_id",
"url"
],
"properties": {
"session_id": {
"title": "Session Id",
"description": "Stripe checkout session ID",
"type": "string"
},
"url": {
"title": "Url",
"description": "Checkout URL",
"type": "string"
}
}
}Fields§
§session_id: StringStripe checkout session ID
url: StringCheckout URL
Implementations§
Source§impl CheckoutSessionResponse
impl CheckoutSessionResponse
pub fn builder() -> CheckoutSessionResponse
Trait Implementations§
Source§impl Clone for CheckoutSessionResponse
impl Clone for CheckoutSessionResponse
Source§fn clone(&self) -> CheckoutSessionResponse
fn clone(&self) -> CheckoutSessionResponse
Returns a duplicate 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 CheckoutSessionResponse
impl Debug for CheckoutSessionResponse
Source§impl<'de> Deserialize<'de> for CheckoutSessionResponse
impl<'de> Deserialize<'de> for CheckoutSessionResponse
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<&CheckoutSessionResponse> for CheckoutSessionResponse
impl From<&CheckoutSessionResponse> for CheckoutSessionResponse
Source§fn from(value: &CheckoutSessionResponse) -> Self
fn from(value: &CheckoutSessionResponse) -> Self
Converts to this type from the input type.
Source§impl From<CheckoutSessionResponse> for CheckoutSessionResponse
impl From<CheckoutSessionResponse> for CheckoutSessionResponse
Source§fn from(value: CheckoutSessionResponse) -> Self
fn from(value: CheckoutSessionResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for CheckoutSessionResponse
impl Serialize for CheckoutSessionResponse
Source§impl TryFrom<CheckoutSessionResponse> for CheckoutSessionResponse
impl TryFrom<CheckoutSessionResponse> for CheckoutSessionResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CheckoutSessionResponse) -> Result<Self, ConversionError>
fn try_from(value: CheckoutSessionResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CheckoutSessionResponse
impl RefUnwindSafe for CheckoutSessionResponse
impl Send for CheckoutSessionResponse
impl Sync for CheckoutSessionResponse
impl Unpin for CheckoutSessionResponse
impl UnwindSafe for CheckoutSessionResponse
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