pub enum Cert {
StakeRegistration(Keypath),
StakeDeregistration(Keypath),
StakeDelegation(StakeDelegation),
VoteDelegation(VoteDelegation),
}
Variants§
StakeRegistration(Keypath)
StakeDeregistration(Keypath)
StakeDelegation(StakeDelegation)
VoteDelegation(VoteDelegation)
Implementations§
Source§impl Cert
impl Cert
Sourcepub fn merge(
field: &mut Option<Cert>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Cert>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for Cert
Auto Trait Implementations§
impl Freeze for Cert
impl RefUnwindSafe for Cert
impl Send for Cert
impl Sync for Cert
impl Unpin for Cert
impl UnwindSafe for Cert
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