Struct botapi::gen_types::NoSkipChatBoostSourceGiveaway
source · pub struct NoSkipChatBoostSourceGiveaway {
pub source: String,
pub giveaway_message_id: i64,
pub user: Option<BoxWrapper<Unbox<User>>>,
pub is_unclaimed: Option<bool>,
}
Expand description
Companion type to ChatBoostSourceGiveaway that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§source: String
Source of the boost, always “giveaway”
giveaway_message_id: i64
Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn’t sent yet.
user: Option<BoxWrapper<Unbox<User>>>
§is_unclaimed: Option<bool>
Implementations§
source§impl NoSkipChatBoostSourceGiveaway
impl NoSkipChatBoostSourceGiveaway
pub fn skip(self) -> ChatBoostSourceGiveaway
Trait Implementations§
source§impl Clone for NoSkipChatBoostSourceGiveaway
impl Clone for NoSkipChatBoostSourceGiveaway
source§fn clone(&self) -> NoSkipChatBoostSourceGiveaway
fn clone(&self) -> NoSkipChatBoostSourceGiveaway
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 NoSkipChatBoostSourceGiveaway
impl Default for NoSkipChatBoostSourceGiveaway
source§fn default() -> NoSkipChatBoostSourceGiveaway
fn default() -> NoSkipChatBoostSourceGiveaway
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NoSkipChatBoostSourceGiveaway
impl<'de> Deserialize<'de> for NoSkipChatBoostSourceGiveaway
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<NoSkipChatBoostSourceGiveaway> for ChatBoostSourceGiveaway
impl From<NoSkipChatBoostSourceGiveaway> for ChatBoostSourceGiveaway
source§fn from(t: NoSkipChatBoostSourceGiveaway) -> Self
fn from(t: NoSkipChatBoostSourceGiveaway) -> Self
Converts to this type from the input type.
source§impl Hash for NoSkipChatBoostSourceGiveaway
impl Hash for NoSkipChatBoostSourceGiveaway
source§impl Into<NoSkipChatBoostSourceGiveaway> for ChatBoostSourceGiveaway
impl Into<NoSkipChatBoostSourceGiveaway> for ChatBoostSourceGiveaway
source§fn into(self) -> NoSkipChatBoostSourceGiveaway
fn into(self) -> NoSkipChatBoostSourceGiveaway
Converts this type into the (usually inferred) input type.
source§impl Ord for NoSkipChatBoostSourceGiveaway
impl Ord for NoSkipChatBoostSourceGiveaway
source§fn cmp(&self, other: &NoSkipChatBoostSourceGiveaway) -> Ordering
fn cmp(&self, other: &NoSkipChatBoostSourceGiveaway) -> 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 NoSkipChatBoostSourceGiveaway
impl PartialEq for NoSkipChatBoostSourceGiveaway
source§fn eq(&self, other: &NoSkipChatBoostSourceGiveaway) -> bool
fn eq(&self, other: &NoSkipChatBoostSourceGiveaway) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoSkipChatBoostSourceGiveaway
impl PartialOrd for NoSkipChatBoostSourceGiveaway
source§fn partial_cmp(&self, other: &NoSkipChatBoostSourceGiveaway) -> Option<Ordering>
fn partial_cmp(&self, other: &NoSkipChatBoostSourceGiveaway) -> 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 NoSkipChatBoostSourceGiveaway
impl StructuralPartialEq for NoSkipChatBoostSourceGiveaway
Auto Trait Implementations§
impl Freeze for NoSkipChatBoostSourceGiveaway
impl RefUnwindSafe for NoSkipChatBoostSourceGiveaway
impl Send for NoSkipChatBoostSourceGiveaway
impl Sync for NoSkipChatBoostSourceGiveaway
impl Unpin for NoSkipChatBoostSourceGiveaway
impl UnwindSafe for NoSkipChatBoostSourceGiveaway
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.