Struct botapi::gen_types::NoSkipMessageOriginChannel
source · pub struct NoSkipMessageOriginChannel {
pub tg_type: String,
pub date: i64,
pub chat: BoxWrapper<Unbox<Chat>>,
pub message_id: i64,
pub author_signature: Option<String>,
}
Expand description
Companion type to MessageOriginChannel that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§tg_type: String
Type of the message origin, always “channel”
date: i64
Date the message was sent originally in Unix time
chat: BoxWrapper<Unbox<Chat>>
Channel chat to which the message was originally sent
message_id: i64
Unique message identifier inside the chat
Implementations§
source§impl NoSkipMessageOriginChannel
impl NoSkipMessageOriginChannel
pub fn skip(self) -> MessageOriginChannel
Trait Implementations§
source§impl Clone for NoSkipMessageOriginChannel
impl Clone for NoSkipMessageOriginChannel
source§fn clone(&self) -> NoSkipMessageOriginChannel
fn clone(&self) -> NoSkipMessageOriginChannel
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 NoSkipMessageOriginChannel
impl Debug for NoSkipMessageOriginChannel
source§impl Default for NoSkipMessageOriginChannel
impl Default for NoSkipMessageOriginChannel
source§fn default() -> NoSkipMessageOriginChannel
fn default() -> NoSkipMessageOriginChannel
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NoSkipMessageOriginChannel
impl<'de> Deserialize<'de> for NoSkipMessageOriginChannel
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<NoSkipMessageOriginChannel> for MessageOriginChannel
impl From<NoSkipMessageOriginChannel> for MessageOriginChannel
source§fn from(t: NoSkipMessageOriginChannel) -> Self
fn from(t: NoSkipMessageOriginChannel) -> Self
Converts to this type from the input type.
source§impl Hash for NoSkipMessageOriginChannel
impl Hash for NoSkipMessageOriginChannel
source§impl Into<NoSkipMessageOriginChannel> for MessageOriginChannel
impl Into<NoSkipMessageOriginChannel> for MessageOriginChannel
source§fn into(self) -> NoSkipMessageOriginChannel
fn into(self) -> NoSkipMessageOriginChannel
Converts this type into the (usually inferred) input type.
source§impl Ord for NoSkipMessageOriginChannel
impl Ord for NoSkipMessageOriginChannel
source§fn cmp(&self, other: &NoSkipMessageOriginChannel) -> Ordering
fn cmp(&self, other: &NoSkipMessageOriginChannel) -> 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 NoSkipMessageOriginChannel
impl PartialEq for NoSkipMessageOriginChannel
source§fn eq(&self, other: &NoSkipMessageOriginChannel) -> bool
fn eq(&self, other: &NoSkipMessageOriginChannel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoSkipMessageOriginChannel
impl PartialOrd for NoSkipMessageOriginChannel
source§fn partial_cmp(&self, other: &NoSkipMessageOriginChannel) -> Option<Ordering>
fn partial_cmp(&self, other: &NoSkipMessageOriginChannel) -> 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 NoSkipMessageOriginChannel
impl StructuralPartialEq for NoSkipMessageOriginChannel
Auto Trait Implementations§
impl Freeze for NoSkipMessageOriginChannel
impl RefUnwindSafe for NoSkipMessageOriginChannel
impl Send for NoSkipMessageOriginChannel
impl Sync for NoSkipMessageOriginChannel
impl Unpin for NoSkipMessageOriginChannel
impl UnwindSafe for NoSkipMessageOriginChannel
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.