pub struct ChatBoostSourceGiveaway {
pub source: String,
pub giveaway_message_id: i64,
pub user: Option<User>,
pub is_unclaimed: Option<bool>,
pub prize_star_count: Option<i64>,
}Expand description
https://core.telegram.org/bots/api#chatboostsourcegiveaway The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
Fields§
§source: String§giveaway_message_id: i64§user: Option<User>§is_unclaimed: Option<bool>§prize_star_count: Option<i64>Trait Implementations§
Source§impl Clone for ChatBoostSourceGiveaway
impl Clone for ChatBoostSourceGiveaway
Source§fn clone(&self) -> ChatBoostSourceGiveaway
fn clone(&self) -> ChatBoostSourceGiveaway
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChatBoostSourceGiveaway
impl Debug for ChatBoostSourceGiveaway
Source§impl<'de> Deserialize<'de> for ChatBoostSourceGiveaway
impl<'de> Deserialize<'de> for ChatBoostSourceGiveaway
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 ChatBoostSourceGiveaway
impl PartialEq for ChatBoostSourceGiveaway
Source§impl Serialize for ChatBoostSourceGiveaway
impl Serialize for ChatBoostSourceGiveaway
impl StructuralPartialEq for ChatBoostSourceGiveaway
Auto Trait Implementations§
impl Freeze for ChatBoostSourceGiveaway
impl RefUnwindSafe for ChatBoostSourceGiveaway
impl Send for ChatBoostSourceGiveaway
impl Sync for ChatBoostSourceGiveaway
impl Unpin for ChatBoostSourceGiveaway
impl UnwindSafe for ChatBoostSourceGiveaway
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)