pub struct PaymentLink {
pub id: Option<String>,
pub version: i32,
pub description: Option<Option<String>>,
pub order_id: Option<String>,
pub checkout_options: Option<Box<CheckoutOptions>>,
pub pre_populated_data: Option<Box<PrePopulatedData>>,
pub url: Option<String>,
pub long_url: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub payment_note: Option<Option<String>>,
}Fields§
§id: Option<String>The Square-assigned ID of the payment link.
version: i32The Square-assigned version number, which is incremented each time an update is committed to the payment link.
description: Option<Option<String>>The optional description of the payment_link object. It is primarily for use by your application and is not used anywhere.
order_id: Option<String>The ID of the order associated with the payment link.
checkout_options: Option<Box<CheckoutOptions>>§pre_populated_data: Option<Box<PrePopulatedData>>§url: Option<String>The shortened URL of the payment link.
long_url: Option<String>The long URL of the payment link.
created_at: Option<String>The timestamp when the payment link was created, in RFC 3339 format.
updated_at: Option<String>The timestamp when the payment link was last updated, in RFC 3339 format.
payment_note: Option<Option<String>>An optional note. After Square processes the payment, this note is added to the resulting Payment.
Implementations§
Source§impl PaymentLink
impl PaymentLink
pub fn new(version: i32) -> PaymentLink
Trait Implementations§
Source§impl Clone for PaymentLink
impl Clone for PaymentLink
Source§fn clone(&self) -> PaymentLink
fn clone(&self) -> PaymentLink
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 PaymentLink
impl Debug for PaymentLink
Source§impl Default for PaymentLink
impl Default for PaymentLink
Source§fn default() -> PaymentLink
fn default() -> PaymentLink
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentLink
impl<'de> Deserialize<'de> for PaymentLink
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 PartialEq for PaymentLink
impl PartialEq for PaymentLink
Source§impl Serialize for PaymentLink
impl Serialize for PaymentLink
impl StructuralPartialEq for PaymentLink
Auto Trait Implementations§
impl Freeze for PaymentLink
impl RefUnwindSafe for PaymentLink
impl Send for PaymentLink
impl Sync for PaymentLink
impl Unpin for PaymentLink
impl UnsafeUnpin for PaymentLink
impl UnwindSafe for PaymentLink
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