Struct frankenstein::objects::InputTextMessageContent
source · [−]pub struct InputTextMessageContent {
pub message_text: String,
pub parse_mode: Option<ParseMode>,
pub entities: Option<Vec<MessageEntity>>,
pub disable_web_page_preview: Option<bool>,
}
Fields
message_text: String
parse_mode: Option<ParseMode>
entities: Option<Vec<MessageEntity>>
disable_web_page_preview: Option<bool>
Implementations
sourceimpl InputTextMessageContent
impl InputTextMessageContent
sourcepub fn builder() -> InputTextMessageContentBuilder<((), (), (), ())>
pub fn builder() -> InputTextMessageContentBuilder<((), (), (), ())>
Create a builder for building InputTextMessageContent
.
On the builder, call .message_text(...)
, .parse_mode(...)
(optional), .entities(...)
(optional), .disable_web_page_preview(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InputTextMessageContent
.
Trait Implementations
sourceimpl Clone for InputTextMessageContent
impl Clone for InputTextMessageContent
sourcefn clone(&self) -> InputTextMessageContent
fn clone(&self) -> InputTextMessageContent
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 InputTextMessageContent
impl Debug for InputTextMessageContent
sourceimpl<'de> Deserialize<'de> for InputTextMessageContent
impl<'de> Deserialize<'de> for InputTextMessageContent
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<InputTextMessageContent> for InputTextMessageContent
impl PartialEq<InputTextMessageContent> for InputTextMessageContent
sourcefn eq(&self, other: &InputTextMessageContent) -> bool
fn eq(&self, other: &InputTextMessageContent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InputTextMessageContent) -> bool
fn ne(&self, other: &InputTextMessageContent) -> bool
This method tests for !=
.
sourceimpl Serialize for InputTextMessageContent
impl Serialize for InputTextMessageContent
impl StructuralPartialEq for InputTextMessageContent
Auto Trait Implementations
impl RefUnwindSafe for InputTextMessageContent
impl Send for InputTextMessageContent
impl Sync for InputTextMessageContent
impl Unpin for InputTextMessageContent
impl UnwindSafe for InputTextMessageContent
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