Struct thor::wallet::UpdateProposal
source · pub struct UpdateProposal {
changes: ConfigParams,
proposer_id: BftLeaderId,
}
Fields§
§changes: ConfigParams
§proposer_id: BftLeaderId
Implementations§
source§impl UpdateProposal
impl UpdateProposal
pub fn new(changes: ConfigParams, proposer_id: BftLeaderId) -> UpdateProposal
pub fn changes(&self) -> &ConfigParams
pub fn proposer_id(&self) -> &BftLeaderId
pub fn serialize_in( &self, bb: ByteBuilder<UpdateProposal> ) -> ByteBuilder<UpdateProposal>
pub fn serialize(&self) -> ByteArray<UpdateProposal>
Trait Implementations§
source§impl Arbitrary for UpdateProposal
impl Arbitrary for UpdateProposal
source§impl Clone for UpdateProposal
impl Clone for UpdateProposal
source§fn clone(&self) -> UpdateProposal
fn clone(&self) -> UpdateProposal
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 UpdateProposal
impl Debug for UpdateProposal
source§impl PartialEq<UpdateProposal> for UpdateProposal
impl PartialEq<UpdateProposal> for UpdateProposal
source§fn eq(&self, other: &UpdateProposal) -> bool
fn eq(&self, other: &UpdateProposal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for UpdateProposal
impl Payload for UpdateProposal
const HAS_DATA: bool = true
const HAS_AUTH: bool = true
type Auth = SingleAccountBindingSignature
fn payload_data(&self) -> PayloadData<UpdateProposal>
fn payload_auth_data( auth: &<UpdateProposal as Payload>::Auth ) -> PayloadAuthData<UpdateProposal>
fn payload_to_certificate_slice( p: PayloadSlice<'_, UpdateProposal> ) -> Option<CertificateSlice<'_>>
source§impl Serialize for UpdateProposal
impl Serialize for UpdateProposal
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 UpdateProposal
impl StructuralEq for UpdateProposal
impl StructuralPartialEq for UpdateProposal
Auto Trait Implementations§
impl RefUnwindSafe for UpdateProposal
impl Send for UpdateProposal
impl Sync for UpdateProposal
impl Unpin for UpdateProposal
impl UnwindSafe for UpdateProposal
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