pub struct MessageBotWriteAccessAllowed {
pub reason: BotWriteAccessAllowReason,
}
Expand description
The user allowed the bot to send messages
Fields§
§reason: BotWriteAccessAllowReason
The reason why the bot was allowed to write messages
Trait Implementations§
Source§impl Clone for MessageBotWriteAccessAllowed
impl Clone for MessageBotWriteAccessAllowed
Source§fn clone(&self) -> MessageBotWriteAccessAllowed
fn clone(&self) -> MessageBotWriteAccessAllowed
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 MessageBotWriteAccessAllowed
impl Debug for MessageBotWriteAccessAllowed
Source§impl<'de> Deserialize<'de> for MessageBotWriteAccessAllowed
impl<'de> Deserialize<'de> for MessageBotWriteAccessAllowed
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 PartialEq for MessageBotWriteAccessAllowed
impl PartialEq for MessageBotWriteAccessAllowed
Source§fn eq(&self, other: &MessageBotWriteAccessAllowed) -> bool
fn eq(&self, other: &MessageBotWriteAccessAllowed) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for MessageBotWriteAccessAllowed
Auto Trait Implementations§
impl Freeze for MessageBotWriteAccessAllowed
impl RefUnwindSafe for MessageBotWriteAccessAllowed
impl Send for MessageBotWriteAccessAllowed
impl Sync for MessageBotWriteAccessAllowed
impl Unpin for MessageBotWriteAccessAllowed
impl UnwindSafe for MessageBotWriteAccessAllowed
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