Struct stripe::UpdatePaymentLinkCustomFields
source · pub struct UpdatePaymentLinkCustomFields {
pub dropdown: Option<UpdatePaymentLinkCustomFieldsDropdown>,
pub key: String,
pub label: UpdatePaymentLinkCustomFieldsLabel,
pub numeric: Option<UpdatePaymentLinkCustomFieldsNumeric>,
pub optional: Option<bool>,
pub text: Option<UpdatePaymentLinkCustomFieldsText>,
pub type_: UpdatePaymentLinkCustomFieldsType,
}
Fields§
§dropdown: Option<UpdatePaymentLinkCustomFieldsDropdown>
Configuration for type=dropdown
fields.
key: String
String of your choice that your integration can use to reconcile this field.
Must be unique to this field, alphanumeric, and up to 200 characters.
label: UpdatePaymentLinkCustomFieldsLabel
The label for the field, displayed to the customer.
numeric: Option<UpdatePaymentLinkCustomFieldsNumeric>
Configuration for type=numeric
fields.
optional: Option<bool>
Whether the customer is required to complete the field before completing the Checkout Session.
Defaults to false
.
text: Option<UpdatePaymentLinkCustomFieldsText>
Configuration for type=text
fields.
type_: UpdatePaymentLinkCustomFieldsType
The type of the field.
Trait Implementations§
source§impl Clone for UpdatePaymentLinkCustomFields
impl Clone for UpdatePaymentLinkCustomFields
source§fn clone(&self) -> UpdatePaymentLinkCustomFields
fn clone(&self) -> UpdatePaymentLinkCustomFields
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 Default for UpdatePaymentLinkCustomFields
impl Default for UpdatePaymentLinkCustomFields
source§fn default() -> UpdatePaymentLinkCustomFields
fn default() -> UpdatePaymentLinkCustomFields
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdatePaymentLinkCustomFields
impl<'de> Deserialize<'de> for UpdatePaymentLinkCustomFields
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 UpdatePaymentLinkCustomFields
impl RefUnwindSafe for UpdatePaymentLinkCustomFields
impl Send for UpdatePaymentLinkCustomFields
impl Sync for UpdatePaymentLinkCustomFields
impl Unpin for UpdatePaymentLinkCustomFields
impl UnwindSafe for UpdatePaymentLinkCustomFields
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