Struct chain_impl_mockchain::certificate::StakeDelegation
source · pub struct StakeDelegation {
pub account_id: UnspecifiedAccountIdentifier,
pub delegation: DelegationType,
}
Fields§
§account_id: UnspecifiedAccountIdentifier
§delegation: DelegationType
Implementations§
source§impl StakeDelegation
impl StakeDelegation
pub fn serialize_in(&self, bb: ByteBuilder<Self>) -> ByteBuilder<Self>
pub fn serialize(&self) -> ByteArray<Self>
pub fn get_delegation_type(&self) -> &DelegationType
Trait Implementations§
source§impl Arbitrary for StakeDelegation
impl Arbitrary for StakeDelegation
source§impl Clone for StakeDelegation
impl Clone for StakeDelegation
source§fn clone(&self) -> StakeDelegation
fn clone(&self) -> StakeDelegation
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 StakeDelegation
impl Debug for StakeDelegation
source§impl Deserialize for StakeDelegation
impl Deserialize for StakeDelegation
fn deserialize<R: Read>(codec: &mut Codec<R>) -> Result<Self, ReadError>
fn deserialize_validate<R>(codec: &mut Codec<R>) -> Result<(), ReadError>where R: Read,
source§impl From<StakeDelegation> for Certificate
impl From<StakeDelegation> for Certificate
source§fn from(cert: StakeDelegation) -> Certificate
fn from(cert: StakeDelegation) -> Certificate
Converts to this type from the input type.
source§impl PartialEq<StakeDelegation> for StakeDelegation
impl PartialEq<StakeDelegation> for StakeDelegation
source§fn eq(&self, other: &StakeDelegation) -> bool
fn eq(&self, other: &StakeDelegation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for StakeDelegation
impl Payload for StakeDelegation
const HAS_DATA: bool = true
const HAS_AUTH: bool = true
type Auth = AccountBindingSignature
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 StakeDelegation
impl Serialize for StakeDelegation
impl Eq for StakeDelegation
impl StructuralEq for StakeDelegation
impl StructuralPartialEq for StakeDelegation
Auto Trait Implementations§
impl RefUnwindSafe for StakeDelegation
impl Send for StakeDelegation
impl Sync for StakeDelegation
impl Unpin for StakeDelegation
impl UnwindSafe for StakeDelegation
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