pub struct GetVotesForUserResponse {
pub status: ApiStatus,
pub applied_authorized_votes: Vec<PublicVote>,
pub applied_anonymous_votes: Vec<PublicVote>,
pub pending_votes: Vec<PublicVote>,
}Fields§
§status: ApiStatus§applied_anonymous_votes: Vec<PublicVote>§pending_votes: Vec<PublicVote>Implementations§
Source§impl GetVotesForUserResponse
impl GetVotesForUserResponse
pub fn new( status: ApiStatus, applied_authorized_votes: Vec<PublicVote>, applied_anonymous_votes: Vec<PublicVote>, pending_votes: Vec<PublicVote>, ) -> GetVotesForUserResponse
Trait Implementations§
Source§impl Clone for GetVotesForUserResponse
impl Clone for GetVotesForUserResponse
Source§fn clone(&self) -> GetVotesForUserResponse
fn clone(&self) -> GetVotesForUserResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetVotesForUserResponse
impl Debug for GetVotesForUserResponse
Source§impl Default for GetVotesForUserResponse
impl Default for GetVotesForUserResponse
Source§fn default() -> GetVotesForUserResponse
fn default() -> GetVotesForUserResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetVotesForUserResponse
impl<'de> Deserialize<'de> for GetVotesForUserResponse
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 PartialEq for GetVotesForUserResponse
impl PartialEq for GetVotesForUserResponse
Source§impl Serialize for GetVotesForUserResponse
impl Serialize for GetVotesForUserResponse
impl StructuralPartialEq for GetVotesForUserResponse
Auto Trait Implementations§
impl Freeze for GetVotesForUserResponse
impl RefUnwindSafe for GetVotesForUserResponse
impl Send for GetVotesForUserResponse
impl Sync for GetVotesForUserResponse
impl Unpin for GetVotesForUserResponse
impl UnwindSafe for GetVotesForUserResponse
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