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