pub struct SendGiftParams {
pub user_id: Option<u64>,
pub chat_id: Option<ChatId>,
pub gift_id: String,
pub pay_for_upgrade: Option<bool>,
pub text: Option<String>,
pub text_parse_mode: Option<ParseMode>,
pub text_entities: Option<Vec<MessageEntity>>,
}Fields§
§user_id: Option<u64>§chat_id: Option<ChatId>§gift_id: String§pay_for_upgrade: Option<bool>§text: Option<String>§text_parse_mode: Option<ParseMode>§text_entities: Option<Vec<MessageEntity>>Implementations§
Source§impl SendGiftParams
impl SendGiftParams
Sourcepub fn builder() -> SendGiftParamsBuilder
pub fn builder() -> SendGiftParamsBuilder
Create an instance of SendGiftParams using the builder syntax
Trait Implementations§
Source§impl Clone for SendGiftParams
impl Clone for SendGiftParams
Source§fn clone(&self) -> SendGiftParams
fn clone(&self) -> SendGiftParams
Returns a duplicate 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 SendGiftParams
impl Debug for SendGiftParams
Source§impl<'de> Deserialize<'de> for SendGiftParams
impl<'de> Deserialize<'de> for SendGiftParams
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 SendGiftParams
impl PartialEq for SendGiftParams
Source§impl Serialize for SendGiftParams
impl Serialize for SendGiftParams
impl Eq for SendGiftParams
impl StructuralPartialEq for SendGiftParams
Auto Trait Implementations§
impl Freeze for SendGiftParams
impl RefUnwindSafe for SendGiftParams
impl Send for SendGiftParams
impl Sync for SendGiftParams
impl Unpin for SendGiftParams
impl UnsafeUnpin for SendGiftParams
impl UnwindSafe for SendGiftParams
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