pub struct ForwardMessageBuilder { /* private fields */ }Expand description
Builder for the ForwardMessage structure
Implementations§
Source§impl ForwardMessageBuilder
impl ForwardMessageBuilder
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, message_thread_id, from_chat_id, disable_notification, protect_content, message_id
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 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
Trait Implementations§
Source§impl Builder for ForwardMessageBuilder
impl Builder for ForwardMessageBuilder
Source§type Value = ForwardMessage
type Value = ForwardMessage
Type to be built
Auto Trait Implementations§
impl Freeze for ForwardMessageBuilder
impl RefUnwindSafe for ForwardMessageBuilder
impl Send for ForwardMessageBuilder
impl Sync for ForwardMessageBuilder
impl Unpin for ForwardMessageBuilder
impl UnwindSafe for ForwardMessageBuilder
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