pub struct CastVotePayload {
pub target: ContentId,
pub value: VoteValue,
}Expand description
Vote on a post or comment, or in a post’s poll
Fields§
§target: ContentIdID of the post or comment to vote on
value: VoteValueTrait Implementations§
Source§impl Clone for CastVotePayload
impl Clone for CastVotePayload
Source§impl Debug for CastVotePayload
impl Debug for CastVotePayload
Source§impl<'de> Deserialize<'de> for CastVotePayload
impl<'de> Deserialize<'de> for CastVotePayload
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
Source§impl<'a> From<&'a CastVotePayload> for SignedAction<'a>
impl<'a> From<&'a CastVotePayload> for SignedAction<'a>
Source§fn from(p: &'a CastVotePayload) -> Self
fn from(p: &'a CastVotePayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CastVotePayload
impl RefUnwindSafe for CastVotePayload
impl Send for CastVotePayload
impl Sync for CastVotePayload
impl Unpin for CastVotePayload
impl UnsafeUnpin for CastVotePayload
impl UnwindSafe for CastVotePayload
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