Struct frankenstein::api_params::ForwardMessageParams
source · [−]pub struct ForwardMessageParams {
pub chat_id: ChatId,
pub from_chat_id: ChatId,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub message_id: i32,
}
Fields
chat_id: ChatId
from_chat_id: ChatId
disable_notification: Option<bool>
protect_content: Option<bool>
message_id: i32
Implementations
sourceimpl ForwardMessageParams
impl ForwardMessageParams
sourcepub fn builder() -> ForwardMessageParamsBuilder<((), (), (), (), ())>
pub fn builder() -> ForwardMessageParamsBuilder<((), (), (), (), ())>
Create a builder for building ForwardMessageParams
.
On the builder, call .chat_id(...)
, .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
sourceimpl Clone for ForwardMessageParams
impl Clone for ForwardMessageParams
sourcefn clone(&self) -> ForwardMessageParams
fn clone(&self) -> ForwardMessageParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ForwardMessageParams
impl Debug for ForwardMessageParams
sourceimpl<'de> Deserialize<'de> for ForwardMessageParams
impl<'de> Deserialize<'de> for ForwardMessageParams
sourcefn 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
sourceimpl PartialEq<ForwardMessageParams> for ForwardMessageParams
impl PartialEq<ForwardMessageParams> for ForwardMessageParams
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ForwardMessageParams) -> bool
fn ne(&self, other: &ForwardMessageParams) -> bool
This method tests for !=
.
sourceimpl Serialize for ForwardMessageParams
impl Serialize for ForwardMessageParams
impl StructuralPartialEq for ForwardMessageParams
Auto Trait Implementations
impl RefUnwindSafe for ForwardMessageParams
impl Send for ForwardMessageParams
impl Sync for ForwardMessageParams
impl Unpin for ForwardMessageParams
impl UnwindSafe for ForwardMessageParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more