pub struct GetVotesResponse {
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 GetVotesResponse
impl GetVotesResponse
pub fn new( status: ApiStatus, applied_authorized_votes: Vec<PublicVote>, applied_anonymous_votes: Vec<PublicVote>, pending_votes: Vec<PublicVote>, ) -> GetVotesResponse
Trait Implementations§
Source§impl Clone for GetVotesResponse
impl Clone for GetVotesResponse
Source§fn clone(&self) -> GetVotesResponse
fn clone(&self) -> GetVotesResponse
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 GetVotesResponse
impl Debug for GetVotesResponse
Source§impl Default for GetVotesResponse
impl Default for GetVotesResponse
Source§fn default() -> GetVotesResponse
fn default() -> GetVotesResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetVotesResponse
impl<'de> Deserialize<'de> for GetVotesResponse
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 GetVotesResponse
impl PartialEq for GetVotesResponse
Source§impl Serialize for GetVotesResponse
impl Serialize for GetVotesResponse
impl StructuralPartialEq for GetVotesResponse
Auto Trait Implementations§
impl Freeze for GetVotesResponse
impl RefUnwindSafe for GetVotesResponse
impl Send for GetVotesResponse
impl Sync for GetVotesResponse
impl Unpin for GetVotesResponse
impl UnwindSafe for GetVotesResponse
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