pub struct NoSkipGame {
pub title: String,
pub description: String,
pub photo: Vec<PhotoSize>,
pub text: Option<String>,
pub text_entities: Option<Vec<MessageEntity>>,
pub animation: Option<BoxWrapper<Unbox<Animation>>>,
}Expand description
Companion type to Game that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§title: StringTitle of the game
description: StringDescription of the game
photo: Vec<PhotoSize>Photo that will be displayed in the game message in chats.
text: Option<String>§text_entities: Option<Vec<MessageEntity>>§animation: Option<BoxWrapper<Unbox<Animation>>>Implementations§
Trait Implementations§
Source§impl Clone for NoSkipGame
impl Clone for NoSkipGame
Source§fn clone(&self) -> NoSkipGame
fn clone(&self) -> NoSkipGame
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 NoSkipGame
impl Debug for NoSkipGame
Source§impl Default for NoSkipGame
impl Default for NoSkipGame
Source§fn default() -> NoSkipGame
fn default() -> NoSkipGame
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoSkipGame
impl<'de> Deserialize<'de> for NoSkipGame
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<NoSkipGame> for Game
impl From<NoSkipGame> for Game
Source§fn from(t: NoSkipGame) -> Self
fn from(t: NoSkipGame) -> Self
Converts to this type from the input type.
Source§impl Hash for NoSkipGame
impl Hash for NoSkipGame
Source§impl Into<NoSkipGame> for Game
impl Into<NoSkipGame> for Game
Source§fn into(self) -> NoSkipGame
fn into(self) -> NoSkipGame
Converts this type into the (usually inferred) input type.
Source§impl Ord for NoSkipGame
impl Ord for NoSkipGame
Source§fn cmp(&self, other: &NoSkipGame) -> Ordering
fn cmp(&self, other: &NoSkipGame) -> 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 NoSkipGame
impl PartialEq for NoSkipGame
Source§impl PartialOrd for NoSkipGame
impl PartialOrd for NoSkipGame
Source§impl Serialize for NoSkipGame
impl Serialize for NoSkipGame
impl Eq for NoSkipGame
impl StructuralPartialEq for NoSkipGame
Auto Trait Implementations§
impl Freeze for NoSkipGame
impl RefUnwindSafe for NoSkipGame
impl Send for NoSkipGame
impl Sync for NoSkipGame
impl Unpin for NoSkipGame
impl UnsafeUnpin for NoSkipGame
impl UnwindSafe for NoSkipGame
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§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.