pub struct UserTypeBot { /* private fields */ }
Expand description
A bot (see https://core.telegram.org/bots)
Implementations§
Source§impl UserTypeBot
impl UserTypeBot
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> UserTypeBotBuilder
pub fn can_join_groups(&self) -> bool
pub fn can_read_all_group_messages(&self) -> bool
pub fn is_inline(&self) -> bool
pub fn inline_query_placeholder(&self) -> &String
pub fn need_location(&self) -> bool
Trait Implementations§
Source§impl AsRef<UserTypeBot> for UserTypeBot
impl AsRef<UserTypeBot> for UserTypeBot
Source§fn as_ref(&self) -> &UserTypeBot
fn as_ref(&self) -> &UserTypeBot
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for UserTypeBot
impl Clone for UserTypeBot
Source§fn clone(&self) -> UserTypeBot
fn clone(&self) -> UserTypeBot
Returns a copy 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 UserTypeBot
impl Debug for UserTypeBot
Source§impl Default for UserTypeBot
impl Default for UserTypeBot
Source§fn default() -> UserTypeBot
fn default() -> UserTypeBot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserTypeBot
impl<'de> Deserialize<'de> for UserTypeBot
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 Serialize for UserTypeBot
impl Serialize for UserTypeBot
impl TDUserType for UserTypeBot
Auto Trait Implementations§
impl Freeze for UserTypeBot
impl RefUnwindSafe for UserTypeBot
impl Send for UserTypeBot
impl Sync for UserTypeBot
impl Unpin for UserTypeBot
impl UnwindSafe for UserTypeBot
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