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