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