pub struct UpdateProposal {
changes: ConfigParams,
proposer_id: UpdateProposerId,
}
Fields§
§changes: ConfigParams
§proposer_id: UpdateProposerId
Implementations§
source§impl UpdateProposal
impl UpdateProposal
pub fn new(changes: ConfigParams, proposer_id: UpdateProposerId) -> Self
pub fn changes(&self) -> &ConfigParams
pub fn proposer_id(&self) -> &UpdateProposerId
pub fn serialize_in(&self, bb: ByteBuilder<Self>) -> ByteBuilder<Self>
pub fn serialize(&self) -> ByteArray<Self>
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 DeserializeFromSlice for UpdateProposal
impl DeserializeFromSlice for UpdateProposal
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<UpdateProposal> for Certificate
impl From<UpdateProposal> for Certificate
source§fn from(update_proposal: UpdateProposal) -> Self
fn from(update_proposal: UpdateProposal) -> Self
Converts to this type from the input type.
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<Self>
fn payload_auth_data(auth: &Self::Auth) -> PayloadAuthData<Self>
fn payload_to_certificate_slice( p: PayloadSlice<'_, Self> ) -> Option<CertificateSlice<'_>>
source§impl Serialize for UpdateProposal
impl Serialize for UpdateProposal
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