Struct teloxide_core::payloads::DeleteChatPhoto
source · [−]pub struct DeleteChatPhoto {
pub chat_id: Recipient,
}Expand description
Use this method to delete a chat photo. Photos can’t be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
Fields
chat_id: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername)
Implementations
Trait Implementations
sourceimpl Clone for DeleteChatPhoto
impl Clone for DeleteChatPhoto
sourcefn clone(&self) -> DeleteChatPhotoⓘNotable traits for DeleteChatPhotoimpl Payload for DeleteChatPhoto type Output = String;
fn clone(&self) -> DeleteChatPhotoⓘNotable traits for DeleteChatPhotoimpl Payload for DeleteChatPhoto type Output = String;
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for DeleteChatPhoto
impl Debug for DeleteChatPhoto
sourceimpl Hash for DeleteChatPhoto
impl Hash for DeleteChatPhoto
sourceimpl PartialEq<DeleteChatPhoto> for DeleteChatPhoto
impl PartialEq<DeleteChatPhoto> for DeleteChatPhoto
sourcefn eq(&self, other: &DeleteChatPhoto) -> bool
fn eq(&self, other: &DeleteChatPhoto) -> bool
sourceimpl Payload for DeleteChatPhoto
impl Payload for DeleteChatPhoto
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates with
big timeout), the minimum timeout that should be used. Read moresourceimpl Serialize for DeleteChatPhoto
impl Serialize for DeleteChatPhoto
impl Eq for DeleteChatPhoto
impl StructuralEq for DeleteChatPhoto
impl StructuralPartialEq for DeleteChatPhoto
Auto Trait Implementations
impl RefUnwindSafe for DeleteChatPhoto
impl Send for DeleteChatPhoto
impl Sync for DeleteChatPhoto
impl Unpin for DeleteChatPhoto
impl UnwindSafe for DeleteChatPhoto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.