pub struct SendDiceParamsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> SendDiceParamsBuilder<S>
impl<S: State> SendDiceParamsBuilder<S>
Sourcepub fn build(self) -> SendDiceParamswhere
S: IsComplete,
pub fn build(self) -> SendDiceParamswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn business_connection_id(
self,
value: impl Into<String>,
) -> SendDiceParamsBuilder<SetBusinessConnectionId<S>>where
S::BusinessConnectionId: IsUnset,
pub fn business_connection_id(
self,
value: impl Into<String>,
) -> SendDiceParamsBuilder<SetBusinessConnectionId<S>>where
S::BusinessConnectionId: IsUnset,
Sourcepub fn maybe_business_connection_id(
self,
value: Option<impl Into<String>>,
) -> SendDiceParamsBuilder<SetBusinessConnectionId<S>>where
S::BusinessConnectionId: IsUnset,
pub fn maybe_business_connection_id(
self,
value: Option<impl Into<String>>,
) -> SendDiceParamsBuilder<SetBusinessConnectionId<S>>where
S::BusinessConnectionId: IsUnset,
Sourcepub fn chat_id(
self,
value: impl Into<ChatId>,
) -> SendDiceParamsBuilder<SetChatId<S>>where
S::ChatId: IsUnset,
pub fn chat_id(
self,
value: impl Into<ChatId>,
) -> SendDiceParamsBuilder<SetChatId<S>>where
S::ChatId: IsUnset,
Required.
Sourcepub fn message_thread_id(
self,
value: i32,
) -> SendDiceParamsBuilder<SetMessageThreadId<S>>where
S::MessageThreadId: IsUnset,
pub fn message_thread_id(
self,
value: i32,
) -> SendDiceParamsBuilder<SetMessageThreadId<S>>where
S::MessageThreadId: IsUnset,
Sourcepub fn maybe_message_thread_id(
self,
value: Option<i32>,
) -> SendDiceParamsBuilder<SetMessageThreadId<S>>where
S::MessageThreadId: IsUnset,
pub fn maybe_message_thread_id(
self,
value: Option<i32>,
) -> SendDiceParamsBuilder<SetMessageThreadId<S>>where
S::MessageThreadId: IsUnset,
Sourcepub fn direct_messages_topic_id(
self,
value: i64,
) -> SendDiceParamsBuilder<SetDirectMessagesTopicId<S>>where
S::DirectMessagesTopicId: IsUnset,
pub fn direct_messages_topic_id(
self,
value: i64,
) -> SendDiceParamsBuilder<SetDirectMessagesTopicId<S>>where
S::DirectMessagesTopicId: IsUnset,
Sourcepub fn maybe_direct_messages_topic_id(
self,
value: Option<i64>,
) -> SendDiceParamsBuilder<SetDirectMessagesTopicId<S>>where
S::DirectMessagesTopicId: IsUnset,
pub fn maybe_direct_messages_topic_id(
self,
value: Option<i64>,
) -> SendDiceParamsBuilder<SetDirectMessagesTopicId<S>>where
S::DirectMessagesTopicId: IsUnset,
Sourcepub fn emoji(
self,
value: impl Into<String>,
) -> SendDiceParamsBuilder<SetEmoji<S>>where
S::Emoji: IsUnset,
pub fn emoji(
self,
value: impl Into<String>,
) -> SendDiceParamsBuilder<SetEmoji<S>>where
S::Emoji: IsUnset,
Sourcepub fn maybe_emoji(
self,
value: Option<impl Into<String>>,
) -> SendDiceParamsBuilder<SetEmoji<S>>where
S::Emoji: IsUnset,
pub fn maybe_emoji(
self,
value: Option<impl Into<String>>,
) -> SendDiceParamsBuilder<SetEmoji<S>>where
S::Emoji: IsUnset,
Sourcepub fn disable_notification(
self,
value: bool,
) -> SendDiceParamsBuilder<SetDisableNotification<S>>where
S::DisableNotification: IsUnset,
pub fn disable_notification(
self,
value: bool,
) -> SendDiceParamsBuilder<SetDisableNotification<S>>where
S::DisableNotification: IsUnset,
Sourcepub fn maybe_disable_notification(
self,
value: Option<bool>,
) -> SendDiceParamsBuilder<SetDisableNotification<S>>where
S::DisableNotification: IsUnset,
pub fn maybe_disable_notification(
self,
value: Option<bool>,
) -> SendDiceParamsBuilder<SetDisableNotification<S>>where
S::DisableNotification: IsUnset,
Sourcepub fn protect_content(
self,
value: bool,
) -> SendDiceParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
pub fn protect_content(
self,
value: bool,
) -> SendDiceParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
Sourcepub fn maybe_protect_content(
self,
value: Option<bool>,
) -> SendDiceParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
pub fn maybe_protect_content(
self,
value: Option<bool>,
) -> SendDiceParamsBuilder<SetProtectContent<S>>where
S::ProtectContent: IsUnset,
Sourcepub fn allow_paid_broadcast(
self,
value: bool,
) -> SendDiceParamsBuilder<SetAllowPaidBroadcast<S>>where
S::AllowPaidBroadcast: IsUnset,
pub fn allow_paid_broadcast(
self,
value: bool,
) -> SendDiceParamsBuilder<SetAllowPaidBroadcast<S>>where
S::AllowPaidBroadcast: IsUnset,
Sourcepub fn maybe_allow_paid_broadcast(
self,
value: Option<bool>,
) -> SendDiceParamsBuilder<SetAllowPaidBroadcast<S>>where
S::AllowPaidBroadcast: IsUnset,
pub fn maybe_allow_paid_broadcast(
self,
value: Option<bool>,
) -> SendDiceParamsBuilder<SetAllowPaidBroadcast<S>>where
S::AllowPaidBroadcast: IsUnset,
Sourcepub fn message_effect_id(
self,
value: impl Into<String>,
) -> SendDiceParamsBuilder<SetMessageEffectId<S>>where
S::MessageEffectId: IsUnset,
pub fn message_effect_id(
self,
value: impl Into<String>,
) -> SendDiceParamsBuilder<SetMessageEffectId<S>>where
S::MessageEffectId: IsUnset,
Sourcepub fn maybe_message_effect_id(
self,
value: Option<impl Into<String>>,
) -> SendDiceParamsBuilder<SetMessageEffectId<S>>where
S::MessageEffectId: IsUnset,
pub fn maybe_message_effect_id(
self,
value: Option<impl Into<String>>,
) -> SendDiceParamsBuilder<SetMessageEffectId<S>>where
S::MessageEffectId: IsUnset,
Sourcepub fn suggested_post_parameters(
self,
value: SuggestedPostParameters,
) -> SendDiceParamsBuilder<SetSuggestedPostParameters<S>>where
S::SuggestedPostParameters: IsUnset,
pub fn suggested_post_parameters(
self,
value: SuggestedPostParameters,
) -> SendDiceParamsBuilder<SetSuggestedPostParameters<S>>where
S::SuggestedPostParameters: IsUnset,
Sourcepub fn maybe_suggested_post_parameters(
self,
value: Option<SuggestedPostParameters>,
) -> SendDiceParamsBuilder<SetSuggestedPostParameters<S>>where
S::SuggestedPostParameters: IsUnset,
pub fn maybe_suggested_post_parameters(
self,
value: Option<SuggestedPostParameters>,
) -> SendDiceParamsBuilder<SetSuggestedPostParameters<S>>where
S::SuggestedPostParameters: IsUnset,
Sourcepub fn reply_parameters(
self,
value: ReplyParameters,
) -> SendDiceParamsBuilder<SetReplyParameters<S>>where
S::ReplyParameters: IsUnset,
pub fn reply_parameters(
self,
value: ReplyParameters,
) -> SendDiceParamsBuilder<SetReplyParameters<S>>where
S::ReplyParameters: IsUnset,
Sourcepub fn maybe_reply_parameters(
self,
value: Option<ReplyParameters>,
) -> SendDiceParamsBuilder<SetReplyParameters<S>>where
S::ReplyParameters: IsUnset,
pub fn maybe_reply_parameters(
self,
value: Option<ReplyParameters>,
) -> SendDiceParamsBuilder<SetReplyParameters<S>>where
S::ReplyParameters: IsUnset,
Sourcepub fn reply_markup(
self,
value: ReplyMarkup,
) -> SendDiceParamsBuilder<SetReplyMarkup<S>>where
S::ReplyMarkup: IsUnset,
pub fn reply_markup(
self,
value: ReplyMarkup,
) -> SendDiceParamsBuilder<SetReplyMarkup<S>>where
S::ReplyMarkup: IsUnset,
Sourcepub fn maybe_reply_markup(
self,
value: Option<ReplyMarkup>,
) -> SendDiceParamsBuilder<SetReplyMarkup<S>>where
S::ReplyMarkup: IsUnset,
pub fn maybe_reply_markup(
self,
value: Option<ReplyMarkup>,
) -> SendDiceParamsBuilder<SetReplyMarkup<S>>where
S::ReplyMarkup: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for SendDiceParamsBuilder<S>
impl<S> RefUnwindSafe for SendDiceParamsBuilder<S>
impl<S> Send for SendDiceParamsBuilder<S>
impl<S> Sync for SendDiceParamsBuilder<S>
impl<S> Unpin for SendDiceParamsBuilder<S>
impl<S> UnsafeUnpin for SendDiceParamsBuilder<S>
impl<S> UnwindSafe for SendDiceParamsBuilder<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