pub struct MessageOriginChannelBuilder {
pub tg_type: String,
pub date: i64,
pub chat: BoxWrapper<Unbox<Chat>>,
pub message_id: i64,
pub author_signature: Option<String>,
}Expand description
The message was originally sent to a channel chat.
Fields§
§tg_type: StringType of the message origin, always “channel”
date: i64Date the message was sent originally in Unix time
chat: BoxWrapper<Unbox<Chat>>Channel chat to which the message was originally sent
message_id: i64Unique message identifier inside the chat
Optional. Signature of the original post author
Implementations§
Source§impl MessageOriginChannelBuilder
impl MessageOriginChannelBuilder
pub fn new<A: Into<Chat>>(date: i64, chat: A, message_id: i64) -> Self
Sourcepub fn set_chat(self, chat: Chat) -> Self
pub fn set_chat(self, chat: Chat) -> Self
Channel chat to which the message was originally sent
Sourcepub fn set_message_id(self, message_id: i64) -> Self
pub fn set_message_id(self, message_id: i64) -> Self
Unique message identifier inside the chat
Optional. Signature of the original post author
pub fn build(self) -> MessageOriginChannel
Trait Implementations§
Source§impl Clone for MessageOriginChannelBuilder
impl Clone for MessageOriginChannelBuilder
Source§fn clone(&self) -> MessageOriginChannelBuilder
fn clone(&self) -> MessageOriginChannelBuilder
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 MessageOriginChannelBuilder
impl Debug for MessageOriginChannelBuilder
Source§impl Default for MessageOriginChannelBuilder
impl Default for MessageOriginChannelBuilder
Source§fn default() -> MessageOriginChannelBuilder
fn default() -> MessageOriginChannelBuilder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageOriginChannelBuilder
impl<'de> Deserialize<'de> for MessageOriginChannelBuilder
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 Hash for MessageOriginChannelBuilder
impl Hash for MessageOriginChannelBuilder
Source§impl Ord for MessageOriginChannelBuilder
impl Ord for MessageOriginChannelBuilder
Source§fn cmp(&self, other: &MessageOriginChannelBuilder) -> Ordering
fn cmp(&self, other: &MessageOriginChannelBuilder) -> 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 PartialOrd for MessageOriginChannelBuilder
impl PartialOrd for MessageOriginChannelBuilder
impl Eq for MessageOriginChannelBuilder
impl StructuralPartialEq for MessageOriginChannelBuilder
Auto Trait Implementations§
impl Freeze for MessageOriginChannelBuilder
impl RefUnwindSafe for MessageOriginChannelBuilder
impl Send for MessageOriginChannelBuilder
impl Sync for MessageOriginChannelBuilder
impl Unpin for MessageOriginChannelBuilder
impl UnsafeUnpin for MessageOriginChannelBuilder
impl UnwindSafe for MessageOriginChannelBuilder
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.