Struct botapi::gen_types::NoSkipPollAnswer
source · pub struct NoSkipPollAnswer {
pub poll_id: String,
pub voter_chat: Option<BoxWrapper<Unbox<Chat>>>,
pub user: Option<BoxWrapper<Unbox<User>>>,
pub option_ids: Vec<i64>,
}
Expand description
Companion type to PollAnswer that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§poll_id: String
Unique poll identifier
voter_chat: Option<BoxWrapper<Unbox<Chat>>>
§user: Option<BoxWrapper<Unbox<User>>>
§option_ids: Vec<i64>
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
Implementations§
source§impl NoSkipPollAnswer
impl NoSkipPollAnswer
pub fn skip(self) -> PollAnswer
Trait Implementations§
source§impl Clone for NoSkipPollAnswer
impl Clone for NoSkipPollAnswer
source§fn clone(&self) -> NoSkipPollAnswer
fn clone(&self) -> NoSkipPollAnswer
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 Debug for NoSkipPollAnswer
impl Debug for NoSkipPollAnswer
source§impl Default for NoSkipPollAnswer
impl Default for NoSkipPollAnswer
source§fn default() -> NoSkipPollAnswer
fn default() -> NoSkipPollAnswer
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NoSkipPollAnswer
impl<'de> Deserialize<'de> for NoSkipPollAnswer
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<NoSkipPollAnswer> for PollAnswer
impl From<NoSkipPollAnswer> for PollAnswer
source§fn from(t: NoSkipPollAnswer) -> Self
fn from(t: NoSkipPollAnswer) -> Self
Converts to this type from the input type.
source§impl Hash for NoSkipPollAnswer
impl Hash for NoSkipPollAnswer
source§impl Into<NoSkipPollAnswer> for PollAnswer
impl Into<NoSkipPollAnswer> for PollAnswer
source§fn into(self) -> NoSkipPollAnswer
fn into(self) -> NoSkipPollAnswer
Converts this type into the (usually inferred) input type.
source§impl Ord for NoSkipPollAnswer
impl Ord for NoSkipPollAnswer
source§fn cmp(&self, other: &NoSkipPollAnswer) -> Ordering
fn cmp(&self, other: &NoSkipPollAnswer) -> 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 NoSkipPollAnswer
impl PartialEq for NoSkipPollAnswer
source§fn eq(&self, other: &NoSkipPollAnswer) -> bool
fn eq(&self, other: &NoSkipPollAnswer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoSkipPollAnswer
impl PartialOrd for NoSkipPollAnswer
source§fn partial_cmp(&self, other: &NoSkipPollAnswer) -> Option<Ordering>
fn partial_cmp(&self, other: &NoSkipPollAnswer) -> 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 moresource§impl Serialize for NoSkipPollAnswer
impl Serialize for NoSkipPollAnswer
impl Eq for NoSkipPollAnswer
impl StructuralPartialEq for NoSkipPollAnswer
Auto Trait Implementations§
impl Freeze for NoSkipPollAnswer
impl RefUnwindSafe for NoSkipPollAnswer
impl Send for NoSkipPollAnswer
impl Sync for NoSkipPollAnswer
impl Unpin for NoSkipPollAnswer
impl UnwindSafe for NoSkipPollAnswer
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.