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