Struct teloxide::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
source§impl Debug for EditChatInviteLink
impl Debug for EditChatInviteLink
source§impl Hash for EditChatInviteLink
impl Hash for EditChatInviteLink
source§impl PartialEq<EditChatInviteLink> for EditChatInviteLink
impl PartialEq<EditChatInviteLink> for EditChatInviteLink
source§fn eq(&self, other: &EditChatInviteLink) -> bool
fn eq(&self, other: &EditChatInviteLink) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
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) -> Selfwhere
T: Into<String>,
fn invite_link<T>(self, value: T) -> Selfwhere
T: Into<String>,
Setter for
invite_link
field.source§fn expire_date<T>(self, value: T) -> Selfwhere
T: Into<DateTime<Utc>>,
fn expire_date<T>(self, value: T) -> Selfwhere
T: Into<DateTime<Utc>>,
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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.