Struct telegram_bot_api::methods::LeaveChat
source · [−]pub struct LeaveChat {
pub chat_id: ChatId,
}
Expand description
Use this method for your bot to leave a group, supergroup or channel. Returns True on success.
Fields
chat_id: ChatId
Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for LeaveChat
impl<'de> Deserialize<'de> for LeaveChat
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
Auto Trait Implementations
impl RefUnwindSafe for LeaveChat
impl Send for LeaveChat
impl Sync for LeaveChat
impl Unpin for LeaveChat
impl UnwindSafe for LeaveChat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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