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