Struct frankenstein::api_params::CopyMessageParams
source · pub struct CopyMessageParams {
pub chat_id: ChatId,
pub message_thread_id: Option<i32>,
pub from_chat_id: ChatId,
pub message_id: i32,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub reply_parameters: Option<ReplyParameters>,
pub reply_markup: Option<ReplyMarkup>,
}
Fields§
§chat_id: ChatId
§message_thread_id: Option<i32>
§from_chat_id: ChatId
§message_id: i32
§parse_mode: Option<ParseMode>
§disable_notification: Option<bool>
§protect_content: Option<bool>
§reply_parameters: Option<ReplyParameters>
§reply_markup: Option<ReplyMarkup>
Implementations§
source§impl CopyMessageParams
impl CopyMessageParams
sourcepub fn builder(
) -> CopyMessageParamsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> CopyMessageParamsBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building CopyMessageParams
.
On the builder, call .chat_id(...)
, .message_thread_id(...)
(optional), .from_chat_id(...)
, .message_id(...)
, .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .disable_notification(...)
(optional), .protect_content(...)
(optional), .reply_parameters(...)
(optional), .reply_markup(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CopyMessageParams
.
Trait Implementations§
source§impl Clone for CopyMessageParams
impl Clone for CopyMessageParams
source§fn clone(&self) -> CopyMessageParams
fn clone(&self) -> CopyMessageParams
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 CopyMessageParams
impl Debug for CopyMessageParams
source§impl<'de> Deserialize<'de> for CopyMessageParams
impl<'de> Deserialize<'de> for CopyMessageParams
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 CopyMessageParams
impl PartialEq for CopyMessageParams
source§fn eq(&self, other: &CopyMessageParams) -> bool
fn eq(&self, other: &CopyMessageParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CopyMessageParams
impl Serialize for CopyMessageParams
impl Eq for CopyMessageParams
impl StructuralPartialEq for CopyMessageParams
Auto Trait Implementations§
impl Freeze for CopyMessageParams
impl RefUnwindSafe for CopyMessageParams
impl Send for CopyMessageParams
impl Sync for CopyMessageParams
impl Unpin for CopyMessageParams
impl UnwindSafe for CopyMessageParams
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