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