Struct rust_tdlib::types::UserTypeBot
source · [−]pub struct UserTypeBot { /* private fields */ }
Expand description
A bot (see https://core.telegram.org/bots)
Implementations
sourceimpl 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
sourceimpl AsRef<UserTypeBot> for UserTypeBot
impl AsRef<UserTypeBot> for UserTypeBot
sourcefn as_ref(&self) -> &UserTypeBot
fn as_ref(&self) -> &UserTypeBot
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for UserTypeBot
impl Clone for UserTypeBot
sourcefn clone(&self) -> UserTypeBot
fn clone(&self) -> UserTypeBot
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UserTypeBot
impl Debug for UserTypeBot
sourceimpl Default for UserTypeBot
impl Default for UserTypeBot
sourcefn default() -> UserTypeBot
fn default() -> UserTypeBot
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for UserTypeBot
impl<'de> Deserialize<'de> for UserTypeBot
sourcefn 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
sourceimpl Serialize for UserTypeBot
impl Serialize for UserTypeBot
impl TDUserType for UserTypeBot
Auto Trait Implementations
impl RefUnwindSafe for UserTypeBot
impl Send for UserTypeBot
impl Sync for UserTypeBot
impl Unpin for UserTypeBot
impl UnwindSafe for UserTypeBot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more