Struct dao::voting::ballot::ShortenedBallot
source · pub struct ShortenedBallot {
pub voter: Address,
pub stake: Balance,
}
Expand description
Fields§
§voter: Address
The voter’s address.
stake: Balance
Vote power.
Trait Implementations§
source§impl BorshDeserialize for ShortenedBallot
impl BorshDeserialize for ShortenedBallot
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 ShortenedBallot
impl BorshSerialize for ShortenedBallot
source§impl Clone for ShortenedBallot
impl Clone for ShortenedBallot
source§fn clone(&self) -> ShortenedBallot
fn clone(&self) -> ShortenedBallot
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 ShortenedBallot
impl Debug for ShortenedBallot
source§impl From<Ballot> for ShortenedBallot
impl From<Ballot> for ShortenedBallot
Auto Trait Implementations§
impl RefUnwindSafe for ShortenedBallot
impl Send for ShortenedBallot
impl Sync for ShortenedBallot
impl Unpin for ShortenedBallot
impl UnwindSafe for ShortenedBallot
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