Struct dao::voting_contracts::SlashedVotings
source · pub struct SlashedVotings {
pub cancelled_votings: Vec<VotingId>,
pub affected_votings: Vec<VotingId>,
}
Fields§
§cancelled_votings: Vec<VotingId>
§affected_votings: Vec<VotingId>
Trait Implementations§
source§impl BorshDeserialize for SlashedVotings
impl BorshDeserialize for SlashedVotings
source§fn deserialize(buf: &mut &[u8]) -> Result<Self>
fn deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
source§impl BorshSerialize for SlashedVotings
impl BorshSerialize for SlashedVotings
source§impl Clone for SlashedVotings
impl Clone for SlashedVotings
source§fn clone(&self) -> SlashedVotings
fn clone(&self) -> SlashedVotings
Returns a copy 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 SlashedVotings
impl Debug for SlashedVotings
source§impl PartialEq for SlashedVotings
impl PartialEq for SlashedVotings
source§fn eq(&self, other: &SlashedVotings) -> bool
fn eq(&self, other: &SlashedVotings) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SlashedVotings
impl StructuralPartialEq for SlashedVotings
Auto Trait Implementations§
impl RefUnwindSafe for SlashedVotings
impl Send for SlashedVotings
impl Sync for SlashedVotings
impl Unpin for SlashedVotings
impl UnwindSafe for SlashedVotings
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