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