pub struct OwnerStakeDelegation {
pub delegation: DelegationType,
}
Expand description
A self delegation to a specific StakePoolId.
This structure is not sufficient to identify the owner, and instead we rely on a special authenticated transaction, which has 1 input.
Fields§
§delegation: DelegationType
Implementations§
source§impl OwnerStakeDelegation
impl OwnerStakeDelegation
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 OwnerStakeDelegation
impl Arbitrary for OwnerStakeDelegation
source§impl Clone for OwnerStakeDelegation
impl Clone for OwnerStakeDelegation
source§fn clone(&self) -> OwnerStakeDelegation
fn clone(&self) -> OwnerStakeDelegation
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 OwnerStakeDelegation
impl Debug for OwnerStakeDelegation
source§impl Deserialize for OwnerStakeDelegation
impl Deserialize for OwnerStakeDelegation
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<OwnerStakeDelegation> for Certificate
impl From<OwnerStakeDelegation> for Certificate
source§fn from(cert: OwnerStakeDelegation) -> Certificate
fn from(cert: OwnerStakeDelegation) -> Certificate
Converts to this type from the input type.
source§impl PartialEq<OwnerStakeDelegation> for OwnerStakeDelegation
impl PartialEq<OwnerStakeDelegation> for OwnerStakeDelegation
source§fn eq(&self, other: &OwnerStakeDelegation) -> bool
fn eq(&self, other: &OwnerStakeDelegation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for OwnerStakeDelegation
impl Payload for OwnerStakeDelegation
const HAS_DATA: bool = true
const HAS_AUTH: bool = false
type Auth = ()
fn payload_data(&self) -> PayloadData<Self>
fn payload_auth_data(_: &Self::Auth) -> PayloadAuthData<Self>
fn payload_to_certificate_slice( p: PayloadSlice<'_, Self> ) -> Option<CertificateSlice<'_>>
source§impl Serialize for OwnerStakeDelegation
impl Serialize for OwnerStakeDelegation
impl Eq for OwnerStakeDelegation
impl StructuralEq for OwnerStakeDelegation
impl StructuralPartialEq for OwnerStakeDelegation
Auto Trait Implementations§
impl RefUnwindSafe for OwnerStakeDelegation
impl Send for OwnerStakeDelegation
impl Sync for OwnerStakeDelegation
impl Unpin for OwnerStakeDelegation
impl UnwindSafe for OwnerStakeDelegation
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