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