Struct frankenstein::objects::Poll [−][src]
pub struct Poll {}Show fields
pub id: String, pub question: String, pub options: Vec<PollOption>, pub total_voter_count: isize, pub is_closed: bool, pub is_anonymous: bool, pub type_field: String, pub allows_multiple_answers: bool, pub correct_option_id: Option<isize>, pub explanation: Option<String>, pub explanation_entities: Option<Vec<MessageEntity>>, pub open_period: Option<isize>, pub close_date: Option<isize>,
Fields
id: String
question: String
options: Vec<PollOption>
total_voter_count: isize
is_closed: bool
is_anonymous: bool
type_field: String
allows_multiple_answers: bool
correct_option_id: Option<isize>
explanation: Option<String>
explanation_entities: Option<Vec<MessageEntity>>
open_period: Option<isize>
close_date: Option<isize>
Implementations
impl Poll
[src]
impl Poll
[src]pub fn new(
id: String,
question: String,
options: Vec<PollOption>,
total_voter_count: isize,
is_closed: bool,
is_anonymous: bool,
type_field: String,
allows_multiple_answers: bool
) -> Self
[src]
id: String,
question: String,
options: Vec<PollOption>,
total_voter_count: isize,
is_closed: bool,
is_anonymous: bool,
type_field: String,
allows_multiple_answers: bool
) -> Self
pub fn set_id(&mut self, id: String)
[src]
pub fn set_question(&mut self, question: String)
[src]
pub fn set_options(&mut self, options: Vec<PollOption>)
[src]
pub fn set_total_voter_count(&mut self, total_voter_count: isize)
[src]
pub fn set_is_closed(&mut self, is_closed: bool)
[src]
pub fn set_is_anonymous(&mut self, is_anonymous: bool)
[src]
pub fn set_type_field(&mut self, type_field: String)
[src]
pub fn set_allows_multiple_answers(&mut self, allows_multiple_answers: bool)
[src]
pub fn set_correct_option_id(&mut self, correct_option_id: Option<isize>)
[src]
pub fn set_explanation(&mut self, explanation: Option<String>)
[src]
pub fn set_explanation_entities(
&mut self,
explanation_entities: Option<Vec<MessageEntity>>
)
[src]
&mut self,
explanation_entities: Option<Vec<MessageEntity>>
)
pub fn set_open_period(&mut self, open_period: Option<isize>)
[src]
pub fn set_close_date(&mut self, close_date: Option<isize>)
[src]
pub fn id(&self) -> String
[src]
pub fn question(&self) -> String
[src]
pub fn options(&self) -> Vec<PollOption>
[src]
pub fn total_voter_count(&self) -> isize
[src]
pub fn is_closed(&self) -> bool
[src]
pub fn is_anonymous(&self) -> bool
[src]
pub fn type_field(&self) -> String
[src]
pub fn allows_multiple_answers(&self) -> bool
[src]
pub fn correct_option_id(&self) -> Option<isize>
[src]
pub fn explanation(&self) -> Option<String>
[src]
pub fn explanation_entities(&self) -> Option<Vec<MessageEntity>>
[src]
pub fn open_period(&self) -> Option<isize>
[src]
pub fn close_date(&self) -> Option<isize>
[src]
Trait Implementations
impl<'de> Deserialize<'de> for Poll
[src]
impl<'de> Deserialize<'de> for Poll
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Poll
[src]
Auto Trait Implementations
impl RefUnwindSafe for Poll
impl Send for Poll
impl Sync for Poll
impl Unpin for Poll
impl UnwindSafe for Poll
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> UnsafeAny for T where
T: Any,
T: Any,