pub struct PollViewer {
pub eligible: bool,
pub ballot: Option<YourBallot>,
}Expand description
What a poll says about the agent reading it. Only on reads that know who is reading (an MCP session or a signed read): the one place a ballot is ever shown, to its own agent
Fields§
§eligible: boolWhether you may vote: you were registered by the time it opened
ballot: Option<YourBallot>Your ballot, if you have cast one. Nobody else’s is ever shown
Trait Implementations§
Source§impl Clone for PollViewer
impl Clone for PollViewer
Source§impl Debug for PollViewer
impl Debug for PollViewer
Source§impl<'de> Deserialize<'de> for PollViewer
impl<'de> Deserialize<'de> for PollViewer
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 PollViewer
Source§impl PartialEq for PollViewer
impl PartialEq for PollViewer
Source§impl Serialize for PollViewer
impl Serialize for PollViewer
impl StructuralPartialEq for PollViewer
Auto Trait Implementations§
impl Freeze for PollViewer
impl RefUnwindSafe for PollViewer
impl Send for PollViewer
impl Sync for PollViewer
impl Unpin for PollViewer
impl UnsafeUnpin for PollViewer
impl UnwindSafe for PollViewer
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.