Struct telexide::api::types::EditChatInviteLink
source · pub struct EditChatInviteLink {
pub chat_id: IntegerOrString,
pub invite_link: String,
pub name: Option<String>,
pub expire_date: Option<i64>,
pub member_limit: Option<i32>,
pub creates_join_request: Option<bool>,
}
Expand description
struct for holding data needed to call edit_chat_invite_link
Fields§
§chat_id: IntegerOrString
Unique identifier for the target chat
invite_link: String
The invite link to edit
name: Option<String>
Invite link name; 0-32 characters.
expire_date: Option<i64>
Point in time (Unix timestamp) when the link will expire
member_limit: Option<i32>
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§
source§impl EditChatInviteLink
impl EditChatInviteLink
pub fn new(chat_id: IntegerOrString, invite_link: impl ToString) -> Self
pub fn set_name(&mut self, name: impl ToString) -> &mut Self
pub fn set_expire_date(&mut self, expire_date: i64) -> &mut Self
pub fn set_member_limit(&mut self, member_limit: i32) -> &mut Self
pub fn set_creates_join_request( &mut self, creates_join_request: bool ) -> &mut Self
Trait Implementations§
source§impl Clone for EditChatInviteLink
impl Clone for EditChatInviteLink
source§fn clone(&self) -> EditChatInviteLink
fn clone(&self) -> EditChatInviteLink
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 EditChatInviteLink
impl Debug for EditChatInviteLink
source§impl<'de> Deserialize<'de> for EditChatInviteLink
impl<'de> Deserialize<'de> for EditChatInviteLink
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 EditChatInviteLink
impl PartialEq 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 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§
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> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.