Struct teloxide_core::payloads::EditChatInviteLink
source · [−]pub struct EditChatInviteLink {
pub chat_id: Recipient,
pub invite_link: String,
pub name: Option<String>,
pub expire_date: Option<DateTime<Utc>>,
pub member_limit: Option<u32>,
pub creates_join_request: Option<bool>,
}Expand description
Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the edited invite link as a ChatInviteLink object.
Fields
chat_id: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername)
invite_link: StringThe invite link to edit
name: Option<String>Invite link name; 0-32 characters
expire_date: Option<DateTime<Utc>>Point in time (Unix timestamp) when the link will expire
member_limit: Option<u32>Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
creates_join_request: Option<bool>True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can’t be specified
Implementations
Trait Implementations
sourceimpl Clone for EditChatInviteLink
impl Clone for EditChatInviteLink
sourcefn clone(&self) -> EditChatInviteLinkⓘNotable traits for EditChatInviteLinkimpl Payload for EditChatInviteLink type Output = String;
fn clone(&self) -> EditChatInviteLinkⓘNotable traits for EditChatInviteLinkimpl Payload for EditChatInviteLink type Output = String;
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 moresourceimpl Debug for EditChatInviteLink
impl Debug for EditChatInviteLink
sourceimpl Hash for EditChatInviteLink
impl Hash for EditChatInviteLink
sourceimpl PartialEq<EditChatInviteLink> for EditChatInviteLink
impl PartialEq<EditChatInviteLink> for EditChatInviteLink
sourcefn eq(&self, other: &EditChatInviteLink) -> bool
fn eq(&self, other: &EditChatInviteLink) -> bool
sourceimpl Payload for EditChatInviteLink
impl Payload for EditChatInviteLink
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates with
big timeout), the minimum timeout that should be used. Read moresourceimpl Serialize for EditChatInviteLink
impl Serialize for EditChatInviteLink
impl Eq for EditChatInviteLink
impl StructuralEq for EditChatInviteLink
impl StructuralPartialEq for EditChatInviteLink
Auto Trait Implementations
impl RefUnwindSafe for EditChatInviteLink
impl Send for EditChatInviteLink
impl Sync for EditChatInviteLink
impl Unpin for EditChatInviteLink
impl UnwindSafe for EditChatInviteLink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.