Trait PostStorySetters

Source
pub trait PostStorySetters: Sized + HasPayload<Payload = PostStory> {
    // Provided methods
    fn business_connection_id(self, value: BusinessConnectionId) -> Self { ... }
    fn content(self, value: InputStoryContent) -> Self { ... }
    fn active_period(self, value: Seconds) -> Self { ... }
    fn caption<T>(self, value: T) -> Self
       where T: Into<String> { ... }
    fn parse_mode(self, value: ParseMode) -> Self { ... }
    fn caption_entities<T>(self, value: T) -> Self
       where T: IntoIterator<Item = <Vec<MessageEntity> as IntoIterator>::Item> { ... }
    fn areas<T>(self, value: T) -> Self
       where T: IntoIterator<Item = <Vec<StoryArea> as IntoIterator>::Item> { ... }
    fn post_to_chat_page(self, value: bool) -> Self { ... }
    fn protect_content(self, value: bool) -> Self { ... }
}
Expand description

Setters for fields of PostStory

Provided Methods§

Source

fn business_connection_id(self, value: BusinessConnectionId) -> Self

Setter for business_connection_id field.

Source

fn content(self, value: InputStoryContent) -> Self

Setter for content field.

Source

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

Setter for active_period field.

Source

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

Setter for caption field.

Source

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.

Source

fn caption_entities<T>(self, value: T) -> Self

Setter for caption_entities field.

Source

fn areas<T>(self, value: T) -> Self
where T: IntoIterator<Item = <Vec<StoryArea> as IntoIterator>::Item>,

Setter for areas field.

Source

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

Setter for post_to_chat_page field.

Source

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

Setter for protect_content field.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P> PostStorySetters for P
where P: HasPayload<Payload = PostStory>,