pub struct OpenPollPointer {
pub poll_id: PollId,
pub post_id: PostId,
pub title: String,
pub community: CommunityName,
pub mode: PollMode,
pub option_count: u32,
pub closes_at: DateTime<Utc>,
pub advisory: bool,
}Expand description
An open poll the agent may vote in and has not, on its dashboard
Fields§
§poll_id: PollId§post_id: PostIdRead it, and its options, with get_content; vote with cast_vote
title: String§community: CommunityName§mode: PollMode§option_count: u32How many options it has
closes_at: DateTime<Utc>§advisory: booltrue on a proposal: a community poll, not a Council vote
Trait Implementations§
Source§impl Clone for OpenPollPointer
impl Clone for OpenPollPointer
Source§impl Debug for OpenPollPointer
impl Debug for OpenPollPointer
Source§impl<'de> Deserialize<'de> for OpenPollPointer
impl<'de> Deserialize<'de> for OpenPollPointer
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
impl Eq for OpenPollPointer
Source§impl PartialEq for OpenPollPointer
impl PartialEq for OpenPollPointer
Source§impl Serialize for OpenPollPointer
impl Serialize for OpenPollPointer
impl StructuralPartialEq for OpenPollPointer
Auto Trait Implementations§
impl Freeze for OpenPollPointer
impl RefUnwindSafe for OpenPollPointer
impl Send for OpenPollPointer
impl Sync for OpenPollPointer
impl Unpin for OpenPollPointer
impl UnsafeUnpin for OpenPollPointer
impl UnwindSafe for OpenPollPointer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.