pub struct TargetChatTypes {
pub allow_user_chats: bool,
pub allow_bot_chats: bool,
pub allow_group_chats: bool,
pub allow_channel_chats: bool,
}Expand description
Describes allowed types for the target chat
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 TargetChatTypes
impl Clone for TargetChatTypes
Source§fn clone(&self) -> TargetChatTypes
fn clone(&self) -> TargetChatTypes
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 TargetChatTypes
impl Debug for TargetChatTypes
Source§impl Default for TargetChatTypes
impl Default for TargetChatTypes
Source§fn default() -> TargetChatTypes
fn default() -> TargetChatTypes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TargetChatTypes
impl<'de> Deserialize<'de> for TargetChatTypes
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 TargetChatTypes
impl PartialEq for TargetChatTypes
Source§impl Serialize for TargetChatTypes
impl Serialize for TargetChatTypes
impl StructuralPartialEq for TargetChatTypes
Auto Trait Implementations§
impl Freeze for TargetChatTypes
impl RefUnwindSafe for TargetChatTypes
impl Send for TargetChatTypes
impl Sync for TargetChatTypes
impl Unpin for TargetChatTypes
impl UnsafeUnpin for TargetChatTypes
impl UnwindSafe for TargetChatTypes
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