Struct chain_impl_mockchain::certificate::PoolRetirement
source · pub struct PoolRetirement {
pub pool_id: PoolId,
pub retirement_time: TimeOffsetSeconds,
}
Expand description
Retirement info for a pool
Fields§
§pool_id: PoolId
§retirement_time: TimeOffsetSeconds
Implementations§
source§impl PoolRetirement
impl PoolRetirement
pub fn serialize_in(&self, bb: ByteBuilder<Self>) -> ByteBuilder<Self>
pub fn serialize(&self) -> ByteArray<Self>
Trait Implementations§
source§impl Arbitrary for PoolRetirement
impl Arbitrary for PoolRetirement
source§impl Clone for PoolRetirement
impl Clone for PoolRetirement
source§fn clone(&self) -> PoolRetirement
fn clone(&self) -> PoolRetirement
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 PoolRetirement
impl Debug for PoolRetirement
source§impl Deserialize for PoolRetirement
impl Deserialize for PoolRetirement
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<PoolRetirement> for Certificate
impl From<PoolRetirement> for Certificate
source§fn from(cert: PoolRetirement) -> Certificate
fn from(cert: PoolRetirement) -> Certificate
Converts to this type from the input type.
source§impl PartialEq<PoolRetirement> for PoolRetirement
impl PartialEq<PoolRetirement> for PoolRetirement
source§fn eq(&self, other: &PoolRetirement) -> bool
fn eq(&self, other: &PoolRetirement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for PoolRetirement
impl Payload for PoolRetirement
const HAS_DATA: bool = true
const HAS_AUTH: bool = true
type Auth = PoolSignature
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 PoolRetirement
impl Serialize for PoolRetirement
impl Eq for PoolRetirement
impl StructuralEq for PoolRetirement
impl StructuralPartialEq for PoolRetirement
Auto Trait Implementations§
impl RefUnwindSafe for PoolRetirement
impl Send for PoolRetirement
impl Sync for PoolRetirement
impl Unpin for PoolRetirement
impl UnwindSafe for PoolRetirement
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