Struct frankenstein::api_params::UnbanChatMemberParams
source · pub struct UnbanChatMemberParams {
pub chat_id: ChatId,
pub user_id: u64,
pub only_if_banned: Option<bool>,
}
Fields§
§chat_id: ChatId
§user_id: u64
§only_if_banned: Option<bool>
Implementations§
source§impl UnbanChatMemberParams
impl UnbanChatMemberParams
sourcepub fn builder() -> UnbanChatMemberParamsBuilder<((), (), ())>
pub fn builder() -> UnbanChatMemberParamsBuilder<((), (), ())>
Create a builder for building UnbanChatMemberParams
.
On the builder, call .chat_id(...)
, .user_id(...)
, .only_if_banned(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of UnbanChatMemberParams
.
Trait Implementations§
source§impl Clone for UnbanChatMemberParams
impl Clone for UnbanChatMemberParams
source§fn clone(&self) -> UnbanChatMemberParams
fn clone(&self) -> UnbanChatMemberParams
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 UnbanChatMemberParams
impl Debug for UnbanChatMemberParams
source§impl<'de> Deserialize<'de> for UnbanChatMemberParams
impl<'de> Deserialize<'de> for UnbanChatMemberParams
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 UnbanChatMemberParams
impl PartialEq for UnbanChatMemberParams
source§fn eq(&self, other: &UnbanChatMemberParams) -> bool
fn eq(&self, other: &UnbanChatMemberParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UnbanChatMemberParams
impl Serialize for UnbanChatMemberParams
impl Eq for UnbanChatMemberParams
impl StructuralPartialEq for UnbanChatMemberParams
Auto Trait Implementations§
impl Freeze for UnbanChatMemberParams
impl RefUnwindSafe for UnbanChatMemberParams
impl Send for UnbanChatMemberParams
impl Sync for UnbanChatMemberParams
impl Unpin for UnbanChatMemberParams
impl UnwindSafe for UnbanChatMemberParams
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