pub struct BotAccessSettings {
pub is_access_restricted: bool,
pub added_users: Option<Vec<User>>,
}Expand description
Describes the access settings of a bot.
Returned by getManagedBotAccessSettings.
Fields§
§is_access_restricted: booltrue if only selected users can access the bot. The bot’s owner can always access it.
added_users: Option<Vec<User>>The list of other users who have access to the bot if the access is restricted.
Trait Implementations§
Source§impl Clone for BotAccessSettings
impl Clone for BotAccessSettings
Source§fn clone(&self) -> BotAccessSettings
fn clone(&self) -> BotAccessSettings
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 BotAccessSettings
impl Debug for BotAccessSettings
Source§impl<'de> Deserialize<'de> for BotAccessSettings
impl<'de> Deserialize<'de> for BotAccessSettings
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
Auto Trait Implementations§
impl Freeze for BotAccessSettings
impl RefUnwindSafe for BotAccessSettings
impl Send for BotAccessSettings
impl Sync for BotAccessSettings
impl Unpin for BotAccessSettings
impl UnsafeUnpin for BotAccessSettings
impl UnwindSafe for BotAccessSettings
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