#[non_exhaustive]pub struct RequestChatsBlockUser {
pub chat_id: ChatId,
pub user_id: UserId,
pub del_last_messages: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.chat_id: ChatId§user_id: UserId§del_last_messages: Option<bool>Implementations§
Source§impl RequestChatsBlockUser
impl RequestChatsBlockUser
pub fn _get_chat_id(&self) -> Option<&ChatId>
Source§impl RequestChatsBlockUser
impl RequestChatsBlockUser
pub fn _get_multipart(&self) -> &MultipartName
Source§impl RequestChatsBlockUser
impl RequestChatsBlockUser
Sourcepub fn with_del_last_messages(self, value: bool) -> Self
pub fn with_del_last_messages(self, value: bool) -> Self
Sets the field del_last_messages
Trait Implementations§
Source§impl BotRequest for RequestChatsBlockUser
impl BotRequest for RequestChatsBlockUser
const METHOD: &'static str = "chats/blockUser"
type Args = (ChatId, UserId)
type RequestType = RequestChatsBlockUser
type ResponseType = ResponseChatsBlockUser
fn new((chat_id, user_id): (ChatId, UserId)) -> Self
fn get_chat_id(&self) -> Option<&ChatId>
fn get_multipart(&self) -> &MultipartName
const HTTP_METHOD: HTTPMethod = HTTPMethod::GET
Source§impl Clone for RequestChatsBlockUser
impl Clone for RequestChatsBlockUser
Source§fn clone(&self) -> RequestChatsBlockUser
fn clone(&self) -> RequestChatsBlockUser
Returns a duplicate 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 RequestChatsBlockUser
impl Debug for RequestChatsBlockUser
Source§impl Default for RequestChatsBlockUser
impl Default for RequestChatsBlockUser
Source§fn default() -> RequestChatsBlockUser
fn default() -> RequestChatsBlockUser
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RequestChatsBlockUser
impl<'de> Deserialize<'de> for RequestChatsBlockUser
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
Auto Trait Implementations§
impl Freeze for RequestChatsBlockUser
impl RefUnwindSafe for RequestChatsBlockUser
impl Send for RequestChatsBlockUser
impl Sync for RequestChatsBlockUser
impl Unpin for RequestChatsBlockUser
impl UnwindSafe for RequestChatsBlockUser
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