pub struct ApiSendMessagesBuilder<S = Empty>where
S: State,{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S> ApiSendMessagesBuilder<S>where
S: State,
impl<S> ApiSendMessagesBuilder<S>where
S: State,
Sourcepub fn build(self) -> ApiSendMessageswhere
S: IsComplete,
pub fn build(self) -> ApiSendMessageswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn send_ref(self, value: ChatRef) -> ApiSendMessagesBuilder<SetSendRef<S>>where
<S as State>::SendRef: IsUnset,
pub fn send_ref(self, value: ChatRef) -> ApiSendMessagesBuilder<SetSendRef<S>>where
<S as State>::SendRef: IsUnset,
Required.
Sourcepub fn live_message(
self,
value: bool,
) -> ApiSendMessagesBuilder<SetLiveMessage<S>>where
<S as State>::LiveMessage: IsUnset,
pub fn live_message(
self,
value: bool,
) -> ApiSendMessagesBuilder<SetLiveMessage<S>>where
<S as State>::LiveMessage: IsUnset,
Required.
Sourcepub fn ttl(self, value: i32) -> ApiSendMessagesBuilder<SetTtl<S>>where
<S as State>::Ttl: IsUnset,
pub fn ttl(self, value: i32) -> ApiSendMessagesBuilder<SetTtl<S>>where
<S as State>::Ttl: IsUnset,
Sourcepub fn maybe_ttl(self, value: Option<i32>) -> ApiSendMessagesBuilder<SetTtl<S>>where
<S as State>::Ttl: IsUnset,
pub fn maybe_ttl(self, value: Option<i32>) -> ApiSendMessagesBuilder<SetTtl<S>>where
<S as State>::Ttl: IsUnset,
Sourcepub fn composed_messages(
self,
value: Vec<ComposedMessage>,
) -> ApiSendMessagesBuilder<SetComposedMessages<S>>where
<S as State>::ComposedMessages: IsUnset,
pub fn composed_messages(
self,
value: Vec<ComposedMessage>,
) -> ApiSendMessagesBuilder<SetComposedMessages<S>>where
<S as State>::ComposedMessages: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for ApiSendMessagesBuilder<S>
impl<S> RefUnwindSafe for ApiSendMessagesBuilder<S>
impl<S> Send for ApiSendMessagesBuilder<S>
impl<S> Sync for ApiSendMessagesBuilder<S>
impl<S> Unpin for ApiSendMessagesBuilder<S>
impl<S> UnsafeUnpin for ApiSendMessagesBuilder<S>
impl<S> UnwindSafe for ApiSendMessagesBuilder<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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more