Struct chain_impl_mockchain::certificate::update_vote::UpdateVote
source · pub struct UpdateVote {
proposal_id: UpdateProposalId,
voter_id: UpdateVoterId,
}
Fields§
§proposal_id: UpdateProposalId
§voter_id: UpdateVoterId
Implementations§
source§impl UpdateVote
impl UpdateVote
pub fn new(proposal_id: UpdateProposalId, voter_id: UpdateVoterId) -> Self
pub fn proposal_id(&self) -> &UpdateProposalId
pub fn voter_id(&self) -> &UpdateVoterId
pub fn serialize_in(&self, bb: ByteBuilder<Self>) -> ByteBuilder<Self>
pub fn serialize(&self) -> ByteArray<Self>
Trait Implementations§
source§impl Arbitrary for UpdateVote
impl Arbitrary for UpdateVote
source§impl Arbitrary for UpdateVote
impl Arbitrary for UpdateVote
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<UpdateVote>
type Strategy = BoxedStrategy<UpdateVote>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Clone for UpdateVote
impl Clone for UpdateVote
source§fn clone(&self) -> UpdateVote
fn clone(&self) -> UpdateVote
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 UpdateVote
impl Debug for UpdateVote
source§impl DeserializeFromSlice for UpdateVote
impl DeserializeFromSlice for UpdateVote
fn deserialize_from_slice(codec: &mut Codec<&[u8]>) -> Result<Self, ReadError>
fn deserialize_validate_from_slice( codec: &mut Codec<&[u8]> ) -> Result<(), ReadError>
source§impl From<UpdateVote> for Certificate
impl From<UpdateVote> for Certificate
source§fn from(update_vote: UpdateVote) -> Self
fn from(update_vote: UpdateVote) -> Self
Converts to this type from the input type.
source§impl Hash for UpdateVote
impl Hash for UpdateVote
source§impl PartialEq<UpdateVote> for UpdateVote
impl PartialEq<UpdateVote> for UpdateVote
source§fn eq(&self, other: &UpdateVote) -> bool
fn eq(&self, other: &UpdateVote) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for UpdateVote
impl Payload for UpdateVote
const HAS_DATA: bool = true
const HAS_AUTH: bool = true
type Auth = SingleAccountBindingSignature
fn payload_data(&self) -> PayloadData<Self>
fn payload_auth_data(auth: &Self::Auth) -> PayloadAuthData<Self>
fn payload_to_certificate_slice( p: PayloadSlice<'_, Self> ) -> Option<CertificateSlice<'_>>
source§impl Serialize for UpdateVote
impl Serialize for UpdateVote
impl Eq for UpdateVote
impl StructuralEq for UpdateVote
impl StructuralPartialEq for UpdateVote
Auto Trait Implementations§
impl RefUnwindSafe for UpdateVote
impl Send for UpdateVote
impl Sync for UpdateVote
impl Unpin for UpdateVote
impl UnwindSafe for UpdateVote
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