Skip to main content

CreateChatSubscriptionInviteLinkSetters

Trait CreateChatSubscriptionInviteLinkSetters 

Source
pub trait CreateChatSubscriptionInviteLinkSetters: HasPayload<Payload = CreateChatSubscriptionInviteLink> + Sized {
    // Provided methods
    fn chat_id<T>(self, value: T) -> Self
       where T: Into<Recipient> { ... }
    fn subscription_period(self, value: Seconds) -> Self { ... }
    fn subscription_price(self, value: u32) -> Self { ... }
    fn name<T>(self, value: T) -> Self
       where T: Into<String> { ... }
}
Expand description

Setters for fields of CreateChatSubscriptionInviteLink

Provided Methods§

Source

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

Setter for chat_id field.

Source

fn subscription_period(self, value: Seconds) -> Self

Setter for subscription_period field.

Source

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

Setter for subscription_price field.

Source

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

Setter for name field.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§