pub struct SendMediaGroupBuilder { /* private fields */ }Expand description
Builder for the SendMediaGroup structure
Implementations§
Source§impl SendMediaGroupBuilder
impl SendMediaGroupBuilder
Sourcepub fn new(chat_id: ChatId) -> Self
pub fn new(chat_id: ChatId) -> Self
Instantiate the builder with the fields message_thread_id, chat_id, media, disable_notification, protect_content, reply_to_message_id, allow_sending_without_reply
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 media(self, val: Vec<InputMedia>) -> Self
pub fn media(self, val: Vec<InputMedia>) -> Self
Set the field media 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
Trait Implementations§
Source§impl Builder for SendMediaGroupBuilder
impl Builder for SendMediaGroupBuilder
Source§type Value = SendMediaGroup
type Value = SendMediaGroup
Type to be built
Auto Trait Implementations§
impl Freeze for SendMediaGroupBuilder
impl RefUnwindSafe for SendMediaGroupBuilder
impl Send for SendMediaGroupBuilder
impl Sync for SendMediaGroupBuilder
impl Unpin for SendMediaGroupBuilder
impl UnwindSafe for SendMediaGroupBuilder
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