pub struct TargetChatChosen {
pub allow_user_chats: bool,
pub allow_bot_chats: bool,
pub allow_group_chats: bool,
pub allow_channel_chats: bool,
}Expand description
The chat needs to be chosen by the user among chats of the specified types
Fields§
§allow_user_chats: boolTrue, if private chats with ordinary users are allowed
allow_bot_chats: boolTrue, if private chats with other bots are allowed
allow_group_chats: boolTrue, if basic group and supergroup chats are allowed
allow_channel_chats: boolTrue, if channel chats are allowed
Trait Implementations§
Source§impl Clone for TargetChatChosen
impl Clone for TargetChatChosen
Source§fn clone(&self) -> TargetChatChosen
fn clone(&self) -> TargetChatChosen
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 TargetChatChosen
impl Debug for TargetChatChosen
Source§impl Default for TargetChatChosen
impl Default for TargetChatChosen
Source§fn default() -> TargetChatChosen
fn default() -> TargetChatChosen
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TargetChatChosen
impl<'de> Deserialize<'de> for TargetChatChosen
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 TargetChatChosen
impl PartialEq for TargetChatChosen
Source§impl Serialize for TargetChatChosen
impl Serialize for TargetChatChosen
impl StructuralPartialEq for TargetChatChosen
Auto Trait Implementations§
impl Freeze for TargetChatChosen
impl RefUnwindSafe for TargetChatChosen
impl Send for TargetChatChosen
impl Sync for TargetChatChosen
impl Unpin for TargetChatChosen
impl UnwindSafe for TargetChatChosen
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