pub struct ProductInfo {
pub title: String,
pub description: FormattedText,
pub photo: Option<Photo>,
}Expand description
Contains information about a product that can be paid with invoice
Fields§
§title: StringProduct title
description: FormattedTextProduct description
photo: Option<Photo>Product photo; may be null
Trait Implementations§
Source§impl Clone for ProductInfo
impl Clone for ProductInfo
Source§fn clone(&self) -> ProductInfo
fn clone(&self) -> ProductInfo
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 ProductInfo
impl Debug for ProductInfo
Source§impl Default for ProductInfo
impl Default for ProductInfo
Source§fn default() -> ProductInfo
fn default() -> ProductInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProductInfo
impl<'de> Deserialize<'de> for ProductInfo
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 ProductInfo
impl PartialEq for ProductInfo
Source§fn eq(&self, other: &ProductInfo) -> bool
fn eq(&self, other: &ProductInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProductInfo
impl Serialize for ProductInfo
impl StructuralPartialEq for ProductInfo
Auto Trait Implementations§
impl Freeze for ProductInfo
impl RefUnwindSafe for ProductInfo
impl Send for ProductInfo
impl Sync for ProductInfo
impl Unpin for ProductInfo
impl UnsafeUnpin for ProductInfo
impl UnwindSafe for ProductInfo
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