Struct telexide::api::types::PinChatMessage
source · pub struct PinChatMessage {
pub chat_id: IntegerOrString,
pub message_id: i64,
pub disable_notification: Option<bool>,
}
Expand description
struct for holding data needed to call
pin_chat_message
Fields§
§chat_id: IntegerOrString
Unique identifier for the target chat
message_id: i64
Identifier of a message to pin
disable_notification: Option<bool>
Sends the message silently. Users will receive a notification with no sound.
Implementations§
source§impl PinChatMessage
impl PinChatMessage
pub fn new(chat_id: IntegerOrString, message_id: i64) -> Self
pub fn set_disable_notification( &mut self, disable_notification: bool ) -> &mut Self
Trait Implementations§
source§impl Clone for PinChatMessage
impl Clone for PinChatMessage
source§fn clone(&self) -> PinChatMessage
fn clone(&self) -> PinChatMessage
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 PinChatMessage
impl Debug for PinChatMessage
source§impl<'de> Deserialize<'de> for PinChatMessage
impl<'de> Deserialize<'de> for PinChatMessage
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 PinChatMessage
impl PartialEq for PinChatMessage
source§fn eq(&self, other: &PinChatMessage) -> bool
fn eq(&self, other: &PinChatMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PinChatMessage
impl Serialize for PinChatMessage
impl Eq for PinChatMessage
impl StructuralEq for PinChatMessage
impl StructuralPartialEq for PinChatMessage
Auto Trait Implementations§
impl RefUnwindSafe for PinChatMessage
impl Send for PinChatMessage
impl Sync for PinChatMessage
impl Unpin for PinChatMessage
impl UnwindSafe for PinChatMessage
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.