Struct frankenstein::api_params::CreateInvoiceLinkParams
source · pub struct CreateInvoiceLinkParams {Show 20 fields
pub title: String,
pub description: String,
pub payload: String,
pub provider_token: String,
pub currency: String,
pub prices: Vec<LabeledPrice>,
pub max_tip_amount: Option<u32>,
pub suggested_tip_amounts: Option<Vec<u32>>,
pub provider_data: Option<String>,
pub photo_url: Option<String>,
pub photo_size: Option<u32>,
pub photo_width: Option<u32>,
pub photo_height: Option<u32>,
pub need_name: Option<bool>,
pub need_phone_number: Option<bool>,
pub need_email: Option<bool>,
pub need_shipping_address: Option<bool>,
pub send_phone_number_to_provider: Option<bool>,
pub send_email_to_provider: Option<bool>,
pub is_flexible: Option<bool>,
}
Fields§
§title: String
§description: String
§payload: String
§provider_token: String
§currency: String
§prices: Vec<LabeledPrice>
§max_tip_amount: Option<u32>
§suggested_tip_amounts: Option<Vec<u32>>
§provider_data: Option<String>
§photo_url: Option<String>
§photo_size: Option<u32>
§photo_width: Option<u32>
§photo_height: Option<u32>
§need_name: Option<bool>
§need_phone_number: Option<bool>
§need_email: Option<bool>
§need_shipping_address: Option<bool>
§send_phone_number_to_provider: Option<bool>
§send_email_to_provider: Option<bool>
§is_flexible: Option<bool>
Implementations§
source§impl CreateInvoiceLinkParams
impl CreateInvoiceLinkParams
sourcepub fn builder(
) -> CreateInvoiceLinkParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> CreateInvoiceLinkParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building CreateInvoiceLinkParams
.
On the builder, call .title(...)
, .description(...)
, .payload(...)
, .provider_token(...)
, .currency(...)
, .prices(...)
, .max_tip_amount(...)
(optional), .suggested_tip_amounts(...)
(optional), .provider_data(...)
(optional), .photo_url(...)
(optional), .photo_size(...)
(optional), .photo_width(...)
(optional), .photo_height(...)
(optional), .need_name(...)
(optional), .need_phone_number(...)
(optional), .need_email(...)
(optional), .need_shipping_address(...)
(optional), .send_phone_number_to_provider(...)
(optional), .send_email_to_provider(...)
(optional), .is_flexible(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateInvoiceLinkParams
.
Trait Implementations§
source§impl Clone for CreateInvoiceLinkParams
impl Clone for CreateInvoiceLinkParams
source§fn clone(&self) -> CreateInvoiceLinkParams
fn clone(&self) -> CreateInvoiceLinkParams
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 Debug for CreateInvoiceLinkParams
impl Debug for CreateInvoiceLinkParams
source§impl<'de> Deserialize<'de> for CreateInvoiceLinkParams
impl<'de> Deserialize<'de> for CreateInvoiceLinkParams
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 CreateInvoiceLinkParams
impl PartialEq for CreateInvoiceLinkParams
source§fn eq(&self, other: &CreateInvoiceLinkParams) -> bool
fn eq(&self, other: &CreateInvoiceLinkParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CreateInvoiceLinkParams
impl Serialize for CreateInvoiceLinkParams
impl Eq for CreateInvoiceLinkParams
impl StructuralPartialEq for CreateInvoiceLinkParams
Auto Trait Implementations§
impl Freeze for CreateInvoiceLinkParams
impl RefUnwindSafe for CreateInvoiceLinkParams
impl Send for CreateInvoiceLinkParams
impl Sync for CreateInvoiceLinkParams
impl Unpin for CreateInvoiceLinkParams
impl UnwindSafe for CreateInvoiceLinkParams
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