Struct rust_tdlib::types::Poll
source · [−]pub struct Poll { /* private fields */ }
Expand description
Describes a poll
Implementations
sourceimpl Poll
impl Poll
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PollBuilder
pub fn id(&self) -> i64
pub fn question(&self) -> &String
pub fn options(&self) -> &Vec<PollOption>
pub fn total_voter_count(&self) -> i32
pub fn recent_voter_user_ids(&self) -> &Vec<i64>
pub fn is_anonymous(&self) -> bool
pub fn type_(&self) -> &PollType
pub fn open_period(&self) -> i32
pub fn close_date(&self) -> i32
pub fn is_closed(&self) -> bool
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Poll
impl<'de> Deserialize<'de> for Poll
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
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
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