pub struct NoSkipInputInvoiceMessageContent {Show 20 fields
pub title: String,
pub description: String,
pub payload: String,
pub provider_token: Option<String>,
pub currency: String,
pub prices: Vec<LabeledPrice>,
pub max_tip_amount: Option<i64>,
pub suggested_tip_amounts: Option<Vec<i64>>,
pub provider_data: Option<String>,
pub photo_url: Option<String>,
pub photo_size: Option<i64>,
pub photo_width: Option<i64>,
pub photo_height: Option<i64>,
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>,
}
Expand description
Companion type to InputInvoiceMessageContent that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§title: String
Product name, 1-32 characters
description: String
Product description, 1-255 characters
payload: String
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
provider_token: Option<String>
§currency: String
Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars.
prices: Vec<LabeledPrice>
Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars.
max_tip_amount: Option<i64>
§suggested_tip_amounts: Option<Vec<i64>>
§provider_data: Option<String>
§photo_url: Option<String>
§photo_size: Option<i64>
§photo_width: Option<i64>
§photo_height: Option<i64>
§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 NoSkipInputInvoiceMessageContent
impl NoSkipInputInvoiceMessageContent
pub fn skip(self) -> InputInvoiceMessageContent
Trait Implementations§
source§impl Clone for NoSkipInputInvoiceMessageContent
impl Clone for NoSkipInputInvoiceMessageContent
source§fn clone(&self) -> NoSkipInputInvoiceMessageContent
fn clone(&self) -> NoSkipInputInvoiceMessageContent
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 NoSkipInputInvoiceMessageContent
impl Default for NoSkipInputInvoiceMessageContent
source§fn default() -> NoSkipInputInvoiceMessageContent
fn default() -> NoSkipInputInvoiceMessageContent
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NoSkipInputInvoiceMessageContent
impl<'de> Deserialize<'de> for NoSkipInputInvoiceMessageContent
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<NoSkipInputInvoiceMessageContent> for InputInvoiceMessageContent
impl From<NoSkipInputInvoiceMessageContent> for InputInvoiceMessageContent
source§fn from(t: NoSkipInputInvoiceMessageContent) -> Self
fn from(t: NoSkipInputInvoiceMessageContent) -> Self
Converts to this type from the input type.
source§impl Into<NoSkipInputInvoiceMessageContent> for InputInvoiceMessageContent
impl Into<NoSkipInputInvoiceMessageContent> for InputInvoiceMessageContent
source§fn into(self) -> NoSkipInputInvoiceMessageContent
fn into(self) -> NoSkipInputInvoiceMessageContent
Converts this type into the (usually inferred) input type.
source§impl Ord for NoSkipInputInvoiceMessageContent
impl Ord for NoSkipInputInvoiceMessageContent
source§fn cmp(&self, other: &NoSkipInputInvoiceMessageContent) -> Ordering
fn cmp(&self, other: &NoSkipInputInvoiceMessageContent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NoSkipInputInvoiceMessageContent
impl PartialEq for NoSkipInputInvoiceMessageContent
source§fn eq(&self, other: &NoSkipInputInvoiceMessageContent) -> bool
fn eq(&self, other: &NoSkipInputInvoiceMessageContent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoSkipInputInvoiceMessageContent
impl PartialOrd for NoSkipInputInvoiceMessageContent
source§fn partial_cmp(
&self,
other: &NoSkipInputInvoiceMessageContent,
) -> Option<Ordering>
fn partial_cmp( &self, other: &NoSkipInputInvoiceMessageContent, ) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for NoSkipInputInvoiceMessageContent
impl StructuralPartialEq for NoSkipInputInvoiceMessageContent
Auto Trait Implementations§
impl Freeze for NoSkipInputInvoiceMessageContent
impl RefUnwindSafe for NoSkipInputInvoiceMessageContent
impl Send for NoSkipInputInvoiceMessageContent
impl Sync for NoSkipInputInvoiceMessageContent
impl Unpin for NoSkipInputInvoiceMessageContent
impl UnwindSafe for NoSkipInputInvoiceMessageContent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.