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
sourceimpl 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
sourceimpl Clone for EditChatInviteLinkParams
impl Clone for EditChatInviteLinkParams
sourcefn clone(&self) -> EditChatInviteLinkParams
fn clone(&self) -> EditChatInviteLinkParams
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 more
sourceimpl Debug for EditChatInviteLinkParams
impl Debug for EditChatInviteLinkParams
sourceimpl<'de> Deserialize<'de> for EditChatInviteLinkParams
impl<'de> Deserialize<'de> for EditChatInviteLinkParams
sourcefn 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
sourceimpl PartialEq<EditChatInviteLinkParams> for EditChatInviteLinkParams
impl PartialEq<EditChatInviteLinkParams> for EditChatInviteLinkParams
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &EditChatInviteLinkParams) -> bool
fn ne(&self, other: &EditChatInviteLinkParams) -> bool
This method tests for !=
.
sourceimpl Serialize for EditChatInviteLinkParams
impl Serialize for EditChatInviteLinkParams
impl StructuralPartialEq for EditChatInviteLinkParams
Auto Trait Implementations
impl RefUnwindSafe for EditChatInviteLinkParams
impl Send for EditChatInviteLinkParams
impl Sync for EditChatInviteLinkParams
impl Unpin for EditChatInviteLinkParams
impl UnwindSafe for EditChatInviteLinkParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more