pub struct CopyMessageBuilder { /* private fields */ }Expand description
Builder for the CopyMessage structure
Implementations§
Source§impl CopyMessageBuilder
impl CopyMessageBuilder
Sourcepub fn new(chat_id: ChatId, from_chat_id: ChatId, message_id: i64) -> Self
pub fn new(chat_id: ChatId, from_chat_id: ChatId, message_id: i64) -> Self
Instantiate the builder with the fields chat_id, from_chat_id, message_id, message_thread_id, caption, parse_mode, caption_entities, disable_notification, protect_content, reply_to_message_id, allow_sending_without_reply, reply_markup
Sourcepub fn message_thread_id(self, val: i64) -> Self
pub fn message_thread_id(self, val: i64) -> Self
Set the field message_thread_id to the given value
Sourcepub fn parse_mode(self, val: String) -> Self
pub fn parse_mode(self, val: String) -> Self
Set the field parse_mode to the given value
Sourcepub fn caption_entities(self, val: Vec<MessageEntity>) -> Self
pub fn caption_entities(self, val: Vec<MessageEntity>) -> Self
Set the field caption_entities to the given value
Sourcepub fn disable_notification(self, val: bool) -> Self
pub fn disable_notification(self, val: bool) -> Self
Set the field disable_notification to the given value
Sourcepub fn protect_content(self, val: bool) -> Self
pub fn protect_content(self, val: bool) -> Self
Set the field protect_content to the given value
Sourcepub fn reply_to_message_id(self, val: i64) -> Self
pub fn reply_to_message_id(self, val: i64) -> Self
Set the field reply_to_message_id to the given value
Sourcepub fn allow_sending_without_reply(self, val: bool) -> Self
pub fn allow_sending_without_reply(self, val: bool) -> Self
Set the field allow_sending_without_reply to the given value
Sourcepub fn reply_markup(self, val: ReplyMarkup) -> Self
pub fn reply_markup(self, val: ReplyMarkup) -> Self
Set the field reply_markup to the given value
Trait Implementations§
Source§impl Builder for CopyMessageBuilder
impl Builder for CopyMessageBuilder
Source§type Value = CopyMessage
type Value = CopyMessage
Type to be built
Auto Trait Implementations§
impl Freeze for CopyMessageBuilder
impl RefUnwindSafe for CopyMessageBuilder
impl Send for CopyMessageBuilder
impl Sync for CopyMessageBuilder
impl Unpin for CopyMessageBuilder
impl UnwindSafe for CopyMessageBuilder
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