pub struct BotAccessSettings {
pub allow_user_messages: bool,
pub allow_bot_messages: bool,
}Expand description
Access settings for a managed bot in Guest Mode (Bot API 10.0).
Controls which message sources the managed bot is allowed to receive.
Both fields default to false; set allow_bot_messages = true to enable
bot-to-bot communication.
Fields§
§allow_user_messages: boolWhether the managed bot may receive messages from users.
allow_bot_messages: boolWhether the managed bot may receive messages from other bots.
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 (const: unstable) · 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
Source§impl PartialEq for BotAccessSettings
impl PartialEq for BotAccessSettings
Source§fn eq(&self, other: &BotAccessSettings) -> bool
fn eq(&self, other: &BotAccessSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BotAccessSettings
impl Serialize for BotAccessSettings
impl StructuralPartialEq for BotAccessSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request