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: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
invite_link: String
The 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§
source§impl Clone for EditChatInviteLink
impl Clone for EditChatInviteLink
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 EditChatInviteLink
impl Debug for EditChatInviteLink
source§impl Hash for EditChatInviteLink
impl Hash for EditChatInviteLink
source§impl PartialEq for EditChatInviteLink
impl PartialEq for EditChatInviteLink
source§impl Payload for EditChatInviteLink
impl Payload for EditChatInviteLink
source§fn 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.source§impl Serialize for EditChatInviteLink
impl Serialize for EditChatInviteLink
impl Eq for EditChatInviteLink
impl StructuralPartialEq for EditChatInviteLink
Auto Trait Implementations§
impl Freeze for EditChatInviteLink
impl RefUnwindSafe for EditChatInviteLink
impl Send for EditChatInviteLink
impl Sync for EditChatInviteLink
impl Unpin for EditChatInviteLink
impl UnwindSafe for EditChatInviteLink
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<P> EditChatInviteLinkSetters for Pwhere
P: HasPayload<Payload = EditChatInviteLink>,
impl<P> EditChatInviteLinkSetters for Pwhere
P: HasPayload<Payload = EditChatInviteLink>,
source§fn invite_link<T>(self, value: T) -> Self
fn invite_link<T>(self, value: T) -> Self
Setter for
invite_link
field.source§fn expire_date<T>(self, value: T) -> Self
fn expire_date<T>(self, value: T) -> Self
Setter for
expire_date
field.source§fn member_limit(self, value: u32) -> Self
fn member_limit(self, value: u32) -> Self
Setter for
member_limit
field.source§fn creates_join_request(self, value: bool) -> Self
fn creates_join_request(self, value: bool) -> Self
Setter for
creates_join_request
field.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Erasable for T
impl<T> Erasable for T
source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
Gain mutable access to the underlying payload.
source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
Gain immutable access to the underlying payload.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more