Struct frankenstein::api_params::SendMediaGroupParams
source · pub struct SendMediaGroupParams {
pub business_connection_id: Option<String>,
pub chat_id: ChatId,
pub message_thread_id: Option<i32>,
pub media: Vec<Media>,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub reply_parameters: Option<ReplyParameters>,
}
Fields§
§business_connection_id: Option<String>
§chat_id: ChatId
§message_thread_id: Option<i32>
§media: Vec<Media>
§disable_notification: Option<bool>
§protect_content: Option<bool>
§reply_parameters: Option<ReplyParameters>
Implementations§
source§impl SendMediaGroupParams
impl SendMediaGroupParams
sourcepub fn builder() -> SendMediaGroupParamsBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> SendMediaGroupParamsBuilder<((), (), (), (), (), (), ())>
Create a builder for building SendMediaGroupParams
.
On the builder, call .business_connection_id(...)
(optional), .chat_id(...)
, .message_thread_id(...)
(optional), .media(...)
, .disable_notification(...)
(optional), .protect_content(...)
(optional), .reply_parameters(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of SendMediaGroupParams
.
Trait Implementations§
source§impl Clone for SendMediaGroupParams
impl Clone for SendMediaGroupParams
source§fn clone(&self) -> SendMediaGroupParams
fn clone(&self) -> SendMediaGroupParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SendMediaGroupParams
impl Debug for SendMediaGroupParams
source§impl<'de> Deserialize<'de> for SendMediaGroupParams
impl<'de> Deserialize<'de> for SendMediaGroupParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SendMediaGroupParams
impl PartialEq for SendMediaGroupParams
source§fn eq(&self, other: &SendMediaGroupParams) -> bool
fn eq(&self, other: &SendMediaGroupParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SendMediaGroupParams
impl Serialize for SendMediaGroupParams
impl Eq for SendMediaGroupParams
impl StructuralPartialEq for SendMediaGroupParams
Auto Trait Implementations§
impl Freeze for SendMediaGroupParams
impl RefUnwindSafe for SendMediaGroupParams
impl Send for SendMediaGroupParams
impl Sync for SendMediaGroupParams
impl Unpin for SendMediaGroupParams
impl UnwindSafe for SendMediaGroupParams
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