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