pub struct ApiUpdateChatItemBuilder<S = Empty>where
S: State,{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S> ApiUpdateChatItemBuilder<S>where
S: State,
impl<S> ApiUpdateChatItemBuilder<S>where
S: State,
Sourcepub fn build(self) -> ApiUpdateChatItemwhere
S: IsComplete,
pub fn build(self) -> ApiUpdateChatItemwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn chat_ref(self, value: ChatRef) -> ApiUpdateChatItemBuilder<SetChatRef<S>>where
<S as State>::ChatRef: IsUnset,
pub fn chat_ref(self, value: ChatRef) -> ApiUpdateChatItemBuilder<SetChatRef<S>>where
<S as State>::ChatRef: IsUnset,
Required.
Sourcepub fn chat_item_id(
self,
value: i64,
) -> ApiUpdateChatItemBuilder<SetChatItemId<S>>where
<S as State>::ChatItemId: IsUnset,
pub fn chat_item_id(
self,
value: i64,
) -> ApiUpdateChatItemBuilder<SetChatItemId<S>>where
<S as State>::ChatItemId: IsUnset,
Required.
Sourcepub fn live_message(
self,
value: bool,
) -> ApiUpdateChatItemBuilder<SetLiveMessage<S>>where
<S as State>::LiveMessage: IsUnset,
pub fn live_message(
self,
value: bool,
) -> ApiUpdateChatItemBuilder<SetLiveMessage<S>>where
<S as State>::LiveMessage: IsUnset,
Required.
Sourcepub fn updated_message(
self,
value: UpdatedMessage,
) -> ApiUpdateChatItemBuilder<SetUpdatedMessage<S>>where
<S as State>::UpdatedMessage: IsUnset,
pub fn updated_message(
self,
value: UpdatedMessage,
) -> ApiUpdateChatItemBuilder<SetUpdatedMessage<S>>where
<S as State>::UpdatedMessage: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for ApiUpdateChatItemBuilder<S>
impl<S> RefUnwindSafe for ApiUpdateChatItemBuilder<S>
impl<S> Send for ApiUpdateChatItemBuilder<S>
impl<S> Sync for ApiUpdateChatItemBuilder<S>
impl<S> Unpin for ApiUpdateChatItemBuilder<S>
impl<S> UnsafeUnpin for ApiUpdateChatItemBuilder<S>
impl<S> UnwindSafe for ApiUpdateChatItemBuilder<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