Struct thor::wallet::UpdateVote  
source · pub struct UpdateVote {
    proposal_id: Hash,
    voter_id: BftLeaderId,
}Fields§
§proposal_id: Hash§voter_id: BftLeaderIdImplementations§
source§impl UpdateVote
 
impl UpdateVote
pub fn new(proposal_id: Hash, voter_id: BftLeaderId) -> UpdateVote
pub fn proposal_id(&self) -> &Hash
pub fn voter_id(&self) -> &BftLeaderId
pub fn serialize_in( &self, bb: ByteBuilder<UpdateVote> ) -> ByteBuilder<UpdateVote>
pub fn serialize(&self) -> ByteArray<UpdateVote>
Trait Implementations§
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: <UpdateVote as Arbitrary>::Parameters
) -> <UpdateVote as Arbitrary>::Strategy
 
fn arbitrary_with( args: <UpdateVote as Arbitrary>::Parameters ) -> <UpdateVote as Arbitrary>::Strategy
source§impl Arbitrary for UpdateVote
 
impl Arbitrary for UpdateVote
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
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<UpdateVote>
fn payload_auth_data( auth: &<UpdateVote as Payload>::Auth ) -> PayloadAuthData<UpdateVote>
fn payload_to_certificate_slice( p: PayloadSlice<'_, UpdateVote> ) -> Option<CertificateSlice<'_>>
source§impl Serialize for UpdateVote
 
impl Serialize for UpdateVote
source§fn serialized_size(&self) -> usize
 
fn serialized_size(&self) -> usize
Default implementation, not efficient, not recommended to use it
fn serialize<W>(&self, codec: &mut Codec<W>) -> Result<(), WriteError>where W: Write,
source§fn serialize_as_vec(&self) -> Result<Vec<u8, Global>, WriteError>
 
fn serialize_as_vec(&self) -> Result<Vec<u8, Global>, WriteError>
Convenience method to serialize into a byte vector.
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
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
Wrap the input message 
T in a tonic::Request