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