Struct telexide::api::types::SetChatDescription
source · pub struct SetChatDescription {
pub chat_id: IntegerOrString,
pub description: Option<String>,
}
Expand description
struct for holding data needed to call
set_chat_description
Fields§
§chat_id: IntegerOrString
Unique identifier for the target chat
description: Option<String>
New chat description, 0-255 characters
Implementations§
source§impl SetChatDescription
impl SetChatDescription
pub fn new(chat_id: IntegerOrString) -> Self
pub fn set_description(&mut self, description: impl ToString) -> &mut Self
Trait Implementations§
source§impl Clone for SetChatDescription
impl Clone for SetChatDescription
source§fn clone(&self) -> SetChatDescription
fn clone(&self) -> SetChatDescription
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 SetChatDescription
impl Debug for SetChatDescription
source§impl<'de> Deserialize<'de> for SetChatDescription
impl<'de> Deserialize<'de> for SetChatDescription
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 PartialEq for SetChatDescription
impl PartialEq for SetChatDescription
source§fn eq(&self, other: &SetChatDescription) -> bool
fn eq(&self, other: &SetChatDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SetChatDescription
impl Serialize for SetChatDescription
impl Eq for SetChatDescription
impl StructuralEq for SetChatDescription
impl StructuralPartialEq for SetChatDescription
Auto Trait Implementations§
impl RefUnwindSafe for SetChatDescription
impl Send for SetChatDescription
impl Sync for SetChatDescription
impl Unpin for SetChatDescription
impl UnwindSafe for SetChatDescription
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
source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.