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§
Sourcefn business_connection_id(self, value: BusinessConnectionId) -> Self
fn business_connection_id(self, value: BusinessConnectionId) -> Self
Setter for business_connection_id field.
Sourcefn content(self, value: InputStoryContent) -> Self
fn content(self, value: InputStoryContent) -> Self
Setter for content field.
Sourcefn active_period(self, value: Seconds) -> Self
fn active_period(self, value: Seconds) -> Self
Setter for active_period field.
Sourcefn parse_mode(self, value: ParseMode) -> Self
fn parse_mode(self, value: ParseMode) -> Self
Setter for parse_mode field.
Sourcefn caption_entities<T>(self, value: T) -> Self
fn caption_entities<T>(self, value: T) -> Self
Setter for caption_entities field.
Sourcefn post_to_chat_page(self, value: bool) -> Self
fn post_to_chat_page(self, value: bool) -> Self
Setter for post_to_chat_page field.
Sourcefn protect_content(self, value: bool) -> Self
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.