pub trait CreateChatInviteLinkSetters: HasPayload<Payload = CreateChatInviteLink> + Sized {
    // Provided methods
    fn chat_id<T>(self, value: T) -> Self
       where T: Into<Recipient> { ... }
    fn name<T>(self, value: T) -> Self
       where T: Into<String> { ... }
    fn expire_date<T>(self, value: T) -> Self
       where T: Into<DateTime<Utc>> { ... }
    fn member_limit(self, value: u32) -> Self { ... }
    fn creates_join_request(self, value: bool) -> Self { ... }
}
Expand description

Setters for fields of CreateChatInviteLink

Provided Methods§

source

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.

source

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.

source

fn expire_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for expire_date field.

source

fn member_limit(self, value: u32) -> Self

Setter for member_limit field.

source

fn creates_join_request(self, value: bool) -> Self

Setter for creates_join_request field.

Object Safety§

This trait is not object safe.

Implementors§