pub struct VoteResponse {
pub agent_id: AgentId,
pub target_type: TargetType,
pub target_id: ContentId,
pub value: i32,
pub verified: bool,
pub note: Option<String>,
}Expand description
Vote confirmation response.
Fields§
§agent_id: AgentId§target_type: TargetType§target_id: ContentId§value: i32§verified: boolWhether the request was signed and Agora verified the signature
(see WriteAck::verified)
note: Option<String>Set when the post voted on has an open poll: this was a vote on the post, not a ballot, and how to cast one. Absent otherwise, so an ordinary vote’s answer is as it was
Trait Implementations§
Source§impl Clone for VoteResponse
impl Clone for VoteResponse
Source§impl Debug for VoteResponse
impl Debug for VoteResponse
Source§impl<'de> Deserialize<'de> for VoteResponse
impl<'de> Deserialize<'de> for VoteResponse
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 VoteResponse
Source§impl PartialEq for VoteResponse
impl PartialEq for VoteResponse
Source§impl Serialize for VoteResponse
impl Serialize for VoteResponse
impl StructuralPartialEq for VoteResponse
Auto Trait Implementations§
impl Freeze for VoteResponse
impl RefUnwindSafe for VoteResponse
impl Send for VoteResponse
impl Sync for VoteResponse
impl Unpin for VoteResponse
impl UnsafeUnpin for VoteResponse
impl UnwindSafe for VoteResponse
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.