pub struct BusinessBotRights {Show 14 fields
pub can_reply: bool,
pub can_read_messages: bool,
pub can_delete_sent_messages: bool,
pub can_delete_all_messages: bool,
pub can_edit_name: bool,
pub can_edit_bio: bool,
pub can_edit_profile_photo: bool,
pub can_edit_username: bool,
pub can_change_gift_settings: bool,
pub can_view_gifts_and_stars: bool,
pub can_convert_gifts_to_stars: bool,
pub can_transfer_and_upgrade_gifts: bool,
pub can_transfer_stars: bool,
pub can_manage_stories: bool,
}Expand description
Represents the rights of a business bot.
Fields§
§can_reply: booltrue, if the bot can send and edit messages in the private chats that
had incoming messages in the last 24 hours
can_read_messages: booltrue, if the bot can mark incoming private messages as read
can_delete_sent_messages: booltrue, if the bot can delete messages sent by the bot
can_delete_all_messages: booltrue, if the bot can delete all private messages in managed chats
can_edit_name: booltrue, if the bot can edit the first and last name of the business
account
can_edit_bio: booltrue, if the bot can edit the bio of the business account
can_edit_profile_photo: booltrue, if the bot can edit the profile photo of the business account
can_edit_username: booltrue, if the bot can edit the username of the business account
can_change_gift_settings: booltrue, if the bot can change the privacy settings pertaining to gifts
for the business account
can_view_gifts_and_stars: booltrue, if the bot can view gifts and the amount of Telegram Stars owned
by the business account
can_convert_gifts_to_stars: booltrue, if the bot can convert regular gifts owned by the business
account to Telegram Stars
can_transfer_and_upgrade_gifts: booltrue, if the bot can transfer and upgrade gifts owned by the business
account
can_transfer_stars: booltrue, if the bot can transfer Telegram Stars received by the business
account to its own account, or use them to upgrade and transfer gifts
can_manage_stories: booltrue, if the bot can post, edit and delete stories on behalf of the
business account
Trait Implementations§
Source§impl Clone for BusinessBotRights
impl Clone for BusinessBotRights
Source§fn clone(&self) -> BusinessBotRights
fn clone(&self) -> BusinessBotRights
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BusinessBotRights
impl Debug for BusinessBotRights
Source§impl<'de> Deserialize<'de> for BusinessBotRights
impl<'de> Deserialize<'de> for BusinessBotRights
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BusinessBotRights, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BusinessBotRights, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for BusinessBotRights
Source§impl Hash for BusinessBotRights
impl Hash for BusinessBotRights
Source§impl PartialEq for BusinessBotRights
impl PartialEq for BusinessBotRights
Source§impl Serialize for BusinessBotRights
impl Serialize for BusinessBotRights
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for BusinessBotRights
Auto Trait Implementations§
impl Forget for BusinessBotRights
impl Freeze for BusinessBotRights
impl Move for BusinessBotRights
impl RefUnwindSafe for BusinessBotRights
impl Send for BusinessBotRights
impl Sync for BusinessBotRights
impl Unpin for BusinessBotRights
impl UnsafeUnpin for BusinessBotRights
impl UnwindSafe for BusinessBotRights
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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 more