pub struct SendPaidMediaParamsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> SendPaidMediaParamsBuilder<S>
impl<S: State> SendPaidMediaParamsBuilder<S>
Sourcepub fn build(self) -> SendPaidMediaParamswhere
S: IsComplete,
pub fn build(self) -> SendPaidMediaParamswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn business_connection_id(
self,
value: impl Into<String>,
) -> SendPaidMediaParamsBuilder<SetBusinessConnectionId<S>>where
S::BusinessConnectionId: IsUnset,
pub fn business_connection_id(
self,
value: impl Into<String>,
) -> SendPaidMediaParamsBuilder<SetBusinessConnectionId<S>>where
S::BusinessConnectionId: IsUnset,
Sourcepub fn maybe_business_connection_id(
self,
value: Option<impl Into<String>>,
) -> SendPaidMediaParamsBuilder<SetBusinessConnectionId<S>>where
S::BusinessConnectionId: IsUnset,
pub fn maybe_business_connection_id(
self,
value: Option<impl Into<String>>,
) -> SendPaidMediaParamsBuilder<SetBusinessConnectionId<S>>where
S::BusinessConnectionId: IsUnset,
Sourcepub fn chat_id(
self,
value: impl Into<ChatId>,
) -> SendPaidMediaParamsBuilder<SetChatId<S>>where
S::ChatId: IsUnset,
pub fn chat_id(
self,
value: impl Into<ChatId>,
) -> SendPaidMediaParamsBuilder<SetChatId<S>>where
S::ChatId: IsUnset,
Required.
Sourcepub fn message_thread_id(
self,
value: i32,
) -> SendPaidMediaParamsBuilder<SetMessageThreadId<S>>where
S::MessageThreadId: IsUnset,
pub fn message_thread_id(
self,
value: i32,
) -> SendPaidMediaParamsBuilder<SetMessageThreadId<S>>where
S::MessageThreadId: IsUnset,
Sourcepub fn maybe_message_thread_id(
self,
value: Option<i32>,
) -> SendPaidMediaParamsBuilder<SetMessageThreadId<S>>where
S::MessageThreadId: IsUnset,
pub fn maybe_message_thread_id(
self,
value: Option<i32>,
) -> SendPaidMediaParamsBuilder<SetMessageThreadId<S>>where
S::MessageThreadId: IsUnset,
Sourcepub fn direct_messages_topic_id(
self,
value: i64,
) -> SendPaidMediaParamsBuilder<SetDirectMessagesTopicId<S>>where
S::DirectMessagesTopicId: IsUnset,
pub fn direct_messages_topic_id(
self,
value: i64,
) -> SendPaidMediaParamsBuilder<SetDirectMessagesTopicId<S>>where
S::DirectMessagesTopicId: IsUnset,
Sourcepub fn maybe_direct_messages_topic_id(
self,
value: Option<i64>,
) -> SendPaidMediaParamsBuilder<SetDirectMessagesTopicId<S>>where
S::DirectMessagesTopicId: IsUnset,
pub fn maybe_direct_messages_topic_id(
self,
value: Option<i64>,
) -> SendPaidMediaParamsBuilder<SetDirectMessagesTopicId<S>>where
S::DirectMessagesTopicId: IsUnset,
Sourcepub fn star_count(
self,
value: u32,
) -> SendPaidMediaParamsBuilder<SetStarCount<S>>where
S::StarCount: IsUnset,
pub fn star_count(
self,
value: u32,
) -> SendPaidMediaParamsBuilder<SetStarCount<S>>where
S::StarCount: IsUnset,
Required.
Sourcepub fn media(
self,
value: Vec<InputPaidMedia>,
) -> SendPaidMediaParamsBuilder<SetMedia<S>>where
S::Media: IsUnset,
pub fn media(
self,
value: Vec<InputPaidMedia>,
) -> SendPaidMediaParamsBuilder<SetMedia<S>>where
S::Media: IsUnset,
Required.
Sourcepub fn payload(
self,
value: impl Into<String>,
) -> SendPaidMediaParamsBuilder<SetPayload<S>>where
S::Payload: IsUnset,
pub fn payload(
self,
value: impl Into<String>,
) -> SendPaidMediaParamsBuilder<SetPayload<S>>where
S::Payload: IsUnset,
Sourcepub fn maybe_payload(
self,
value: Option<impl Into<String>>,
) -> SendPaidMediaParamsBuilder<SetPayload<S>>where
S::Payload: IsUnset,
pub fn maybe_payload(
self,
value: Option<impl Into<String>>,
) -> SendPaidMediaParamsBuilder<SetPayload<S>>where
S::Payload: IsUnset,
Sourcepub fn caption(
self,
value: impl Into<String>,
) -> SendPaidMediaParamsBuilder<SetCaption<S>>where
S::Caption: IsUnset,
pub fn caption(
self,
value: impl Into<String>,
) -> SendPaidMediaParamsBuilder<SetCaption<S>>where
S::Caption: IsUnset,
Sourcepub fn maybe_caption(
self,
value: Option<impl Into<String>>,
) -> SendPaidMediaParamsBuilder<SetCaption<S>>where
S::Caption: IsUnset,
pub fn maybe_caption(
self,
value: Option<impl Into<String>>,
) -> SendPaidMediaParamsBuilder<SetCaption<S>>where
S::Caption: IsUnset,
Sourcepub fn parse_mode(
self,
value: ParseMode,
) -> SendPaidMediaParamsBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
pub fn parse_mode(
self,
value: ParseMode,
) -> SendPaidMediaParamsBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
Sourcepub fn maybe_parse_mode(
self,
value: Option<ParseMode>,
) -> SendPaidMediaParamsBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
pub fn maybe_parse_mode(
self,
value: Option<ParseMode>,
) -> SendPaidMediaParamsBuilder<SetParseMode<S>>where
S::ParseMode: IsUnset,
Sourcepub fn caption_entities(
self,
value: Vec<MessageEntity>,
) -> SendPaidMediaParamsBuilder<SetCaptionEntities<S>>where
S::CaptionEntities: IsUnset,
pub fn caption_entities(
self,
value: Vec<MessageEntity>,
) -> SendPaidMediaParamsBuilder<SetCaptionEntities<S>>where
S::CaptionEntities: IsUnset,
Sourcepub fn maybe_caption_entities(
self,
value: Option<Vec<MessageEntity>>,
) -> SendPaidMediaParamsBuilder<SetCaptionEntities<S>>where
S::CaptionEntities: IsUnset,
pub fn maybe_caption_entities(
self,
value: Option<Vec<MessageEntity>>,
) -> SendPaidMediaParamsBuilder<SetCaptionEntities<S>>where
S::CaptionEntities: IsUnset,
Sourcepub fn show_caption_above_media(
self,
value: bool,
) -> SendPaidMediaParamsBuilder<SetShowCaptionAboveMedia<S>>where
S::ShowCaptionAboveMedia: IsUnset,
pub fn show_caption_above_media(
self,
value: bool,
) -> SendPaidMediaParamsBuilder<SetShowCaptionAboveMedia<S>>where
S::ShowCaptionAboveMedia: IsUnset,
Sourcepub fn maybe_show_caption_above_media(
self,
value: Option<bool>,
) -> SendPaidMediaParamsBuilder<SetShowCaptionAboveMedia<S>>where
S::ShowCaptionAboveMedia: IsUnset,
pub fn maybe_show_caption_above_media(
self,
value: Option<bool>,
) -> SendPaidMediaParamsBuilder<SetShowCaptionAboveMedia<S>>where
S::ShowCaptionAboveMedia: IsUnset,
Sourcepub fn disable_notification(
self,
value: bool,
) -> SendPaidMediaParamsBuilder<SetDisableNotification<S>>where
S::DisableNotification: IsUnset,
pub fn disable_notification(
self,
value: bool,
) -> SendPaidMediaParamsBuilder<SetDisableNotification<S>>where
S::DisableNotification: IsUnset,
Sourcepub fn maybe_disable_notification(
self,
value: Option<bool>,
) -> SendPaidMediaParamsBuilder<SetDisableNotification<S>>where
S::DisableNotification: IsUnset,
pub fn maybe_disable_notification(
self,
value: Option<bool>,
) -> SendPaidMediaParamsBuilder<SetDisableNotification<S>>where
S::DisableNotification: IsUnset,
Sourcepub fn protect_content(
self,
value: bool,
) -> SendPaidMediaParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
pub fn protect_content(
self,
value: bool,
) -> SendPaidMediaParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
Sourcepub fn maybe_protect_content(
self,
value: Option<bool>,
) -> SendPaidMediaParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
pub fn maybe_protect_content(
self,
value: Option<bool>,
) -> SendPaidMediaParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
Sourcepub fn allow_paid_broadcast(
self,
value: bool,
) -> SendPaidMediaParamsBuilder<SetAllowPaidBroadcast<S>>where
S::AllowPaidBroadcast: IsUnset,
pub fn allow_paid_broadcast(
self,
value: bool,
) -> SendPaidMediaParamsBuilder<SetAllowPaidBroadcast<S>>where
S::AllowPaidBroadcast: IsUnset,
Sourcepub fn maybe_allow_paid_broadcast(
self,
value: Option<bool>,
) -> SendPaidMediaParamsBuilder<SetAllowPaidBroadcast<S>>where
S::AllowPaidBroadcast: IsUnset,
pub fn maybe_allow_paid_broadcast(
self,
value: Option<bool>,
) -> SendPaidMediaParamsBuilder<SetAllowPaidBroadcast<S>>where
S::AllowPaidBroadcast: IsUnset,
Sourcepub fn suggested_post_parameters(
self,
value: SuggestedPostParameters,
) -> SendPaidMediaParamsBuilder<SetSuggestedPostParameters<S>>where
S::SuggestedPostParameters: IsUnset,
pub fn suggested_post_parameters(
self,
value: SuggestedPostParameters,
) -> SendPaidMediaParamsBuilder<SetSuggestedPostParameters<S>>where
S::SuggestedPostParameters: IsUnset,
Sourcepub fn maybe_suggested_post_parameters(
self,
value: Option<SuggestedPostParameters>,
) -> SendPaidMediaParamsBuilder<SetSuggestedPostParameters<S>>where
S::SuggestedPostParameters: IsUnset,
pub fn maybe_suggested_post_parameters(
self,
value: Option<SuggestedPostParameters>,
) -> SendPaidMediaParamsBuilder<SetSuggestedPostParameters<S>>where
S::SuggestedPostParameters: IsUnset,
Sourcepub fn reply_parameters(
self,
value: ReplyParameters,
) -> SendPaidMediaParamsBuilder<SetReplyParameters<S>>where
S::ReplyParameters: IsUnset,
pub fn reply_parameters(
self,
value: ReplyParameters,
) -> SendPaidMediaParamsBuilder<SetReplyParameters<S>>where
S::ReplyParameters: IsUnset,
Sourcepub fn maybe_reply_parameters(
self,
value: Option<ReplyParameters>,
) -> SendPaidMediaParamsBuilder<SetReplyParameters<S>>where
S::ReplyParameters: IsUnset,
pub fn maybe_reply_parameters(
self,
value: Option<ReplyParameters>,
) -> SendPaidMediaParamsBuilder<SetReplyParameters<S>>where
S::ReplyParameters: IsUnset,
Sourcepub fn reply_markup(
self,
value: ReplyMarkup,
) -> SendPaidMediaParamsBuilder<SetReplyMarkup<S>>where
S::ReplyMarkup: IsUnset,
pub fn reply_markup(
self,
value: ReplyMarkup,
) -> SendPaidMediaParamsBuilder<SetReplyMarkup<S>>where
S::ReplyMarkup: IsUnset,
Sourcepub fn maybe_reply_markup(
self,
value: Option<ReplyMarkup>,
) -> SendPaidMediaParamsBuilder<SetReplyMarkup<S>>where
S::ReplyMarkup: IsUnset,
pub fn maybe_reply_markup(
self,
value: Option<ReplyMarkup>,
) -> SendPaidMediaParamsBuilder<SetReplyMarkup<S>>where
S::ReplyMarkup: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for SendPaidMediaParamsBuilder<S>
impl<S> RefUnwindSafe for SendPaidMediaParamsBuilder<S>
impl<S> Send for SendPaidMediaParamsBuilder<S>
impl<S> Sync for SendPaidMediaParamsBuilder<S>
impl<S> Unpin for SendPaidMediaParamsBuilder<S>
impl<S> UnsafeUnpin for SendPaidMediaParamsBuilder<S>
impl<S> UnwindSafe for SendPaidMediaParamsBuilder<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