pub struct CreatePrivateChat {
pub user_id: i32,
pub force: bool,
}
Expand description
Returns an existing chat corresponding to a given user
Fields§
§user_id: i32
User identifier
force: bool
If true, the chat will be created without network request. In this case all information about the chat except its type, title and photo can be incorrect
Trait Implementations§
Source§impl Clone for CreatePrivateChat
impl Clone for CreatePrivateChat
Source§fn clone(&self) -> CreatePrivateChat
fn clone(&self) -> CreatePrivateChat
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 CreatePrivateChat
impl Debug for CreatePrivateChat
Source§impl<'de> Deserialize<'de> for CreatePrivateChat
impl<'de> Deserialize<'de> for CreatePrivateChat
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 Method for CreatePrivateChat
impl Method for CreatePrivateChat
Auto Trait Implementations§
impl Freeze for CreatePrivateChat
impl RefUnwindSafe for CreatePrivateChat
impl Send for CreatePrivateChat
impl Sync for CreatePrivateChat
impl Unpin for CreatePrivateChat
impl UnwindSafe for CreatePrivateChat
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