pub struct PostStoryParamsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> PostStoryParamsBuilder<S>
impl<S: State> PostStoryParamsBuilder<S>
Sourcepub fn build(self) -> PostStoryParamswhere
S: IsComplete,
pub fn build(self) -> PostStoryParamswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn business_connection_id(
self,
value: impl Into<String>,
) -> PostStoryParamsBuilder<SetBusinessConnectionId<S>>where
S::BusinessConnectionId: IsUnset,
pub fn business_connection_id(
self,
value: impl Into<String>,
) -> PostStoryParamsBuilder<SetBusinessConnectionId<S>>where
S::BusinessConnectionId: IsUnset,
Required.
Sourcepub fn content(
self,
value: InputStoryContent,
) -> PostStoryParamsBuilder<SetContent<S>>where
S::Content: IsUnset,
pub fn content(
self,
value: InputStoryContent,
) -> PostStoryParamsBuilder<SetContent<S>>where
S::Content: IsUnset,
Required.
Sourcepub fn active_period(
self,
value: u32,
) -> PostStoryParamsBuilder<SetActivePeriod<S>>where
S::ActivePeriod: IsUnset,
pub fn active_period(
self,
value: u32,
) -> PostStoryParamsBuilder<SetActivePeriod<S>>where
S::ActivePeriod: IsUnset,
Required.
Sourcepub fn caption(
self,
value: impl Into<String>,
) -> PostStoryParamsBuilder<SetCaption<S>>where
S::Caption: IsUnset,
pub fn caption(
self,
value: impl Into<String>,
) -> PostStoryParamsBuilder<SetCaption<S>>where
S::Caption: IsUnset,
Sourcepub fn maybe_caption(
self,
value: Option<impl Into<String>>,
) -> PostStoryParamsBuilder<SetCaption<S>>where
S::Caption: IsUnset,
pub fn maybe_caption(
self,
value: Option<impl Into<String>>,
) -> PostStoryParamsBuilder<SetCaption<S>>where
S::Caption: IsUnset,
Sourcepub fn parse_mode(
self,
value: impl Into<String>,
) -> PostStoryParamsBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
pub fn parse_mode(
self,
value: impl Into<String>,
) -> PostStoryParamsBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
Sourcepub fn maybe_parse_mode(
self,
value: Option<impl Into<String>>,
) -> PostStoryParamsBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
pub fn maybe_parse_mode(
self,
value: Option<impl Into<String>>,
) -> PostStoryParamsBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
Sourcepub fn caption_entities(
self,
value: Vec<MessageEntity>,
) -> PostStoryParamsBuilder<SetCaptionEntities<S>>where
S::CaptionEntities: IsUnset,
pub fn caption_entities(
self,
value: Vec<MessageEntity>,
) -> PostStoryParamsBuilder<SetCaptionEntities<S>>where
S::CaptionEntities: IsUnset,
Sourcepub fn maybe_caption_entities(
self,
value: Option<Vec<MessageEntity>>,
) -> PostStoryParamsBuilder<SetCaptionEntities<S>>where
S::CaptionEntities: IsUnset,
pub fn maybe_caption_entities(
self,
value: Option<Vec<MessageEntity>>,
) -> PostStoryParamsBuilder<SetCaptionEntities<S>>where
S::CaptionEntities: IsUnset,
Sourcepub fn areas(self, value: Vec<StoryArea>) -> PostStoryParamsBuilder<SetAreas<S>>where
S::Areas: IsUnset,
pub fn areas(self, value: Vec<StoryArea>) -> PostStoryParamsBuilder<SetAreas<S>>where
S::Areas: IsUnset,
Sourcepub fn maybe_areas(
self,
value: Option<Vec<StoryArea>>,
) -> PostStoryParamsBuilder<SetAreas<S>>where
S::Areas: IsUnset,
pub fn maybe_areas(
self,
value: Option<Vec<StoryArea>>,
) -> PostStoryParamsBuilder<SetAreas<S>>where
S::Areas: IsUnset,
Sourcepub fn post_to_chat_page(
self,
value: bool,
) -> PostStoryParamsBuilder<SetPostToChatPage<S>>where
S::PostToChatPage: IsUnset,
pub fn post_to_chat_page(
self,
value: bool,
) -> PostStoryParamsBuilder<SetPostToChatPage<S>>where
S::PostToChatPage: IsUnset,
Sourcepub fn maybe_post_to_chat_page(
self,
value: Option<bool>,
) -> PostStoryParamsBuilder<SetPostToChatPage<S>>where
S::PostToChatPage: IsUnset,
pub fn maybe_post_to_chat_page(
self,
value: Option<bool>,
) -> PostStoryParamsBuilder<SetPostToChatPage<S>>where
S::PostToChatPage: IsUnset,
Sourcepub fn protect_content(
self,
value: bool,
) -> PostStoryParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
pub fn protect_content(
self,
value: bool,
) -> PostStoryParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
Sourcepub fn maybe_protect_content(
self,
value: Option<bool>,
) -> PostStoryParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
pub fn maybe_protect_content(
self,
value: Option<bool>,
) -> PostStoryParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for PostStoryParamsBuilder<S>
impl<S> RefUnwindSafe for PostStoryParamsBuilder<S>
impl<S> Send for PostStoryParamsBuilder<S>
impl<S> Sync for PostStoryParamsBuilder<S>
impl<S> Unpin for PostStoryParamsBuilder<S>
impl<S> UnsafeUnpin for PostStoryParamsBuilder<S>
impl<S> UnwindSafe for PostStoryParamsBuilder<S>
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