pub enum Certificate {
Show 17 variants
StakeRegistration(StakeRegistration),
StakeDeregistration(StakeDeregistration),
StakeDelegation(StakeDelegation),
PoolRegistration(PoolRegistration),
PoolRetirement(PoolRetirement),
RegCert(RegCert),
UnregCert(UnregCert),
VoteDelegCert(VoteDelegCert),
StakeVoteDelegCert(StakeVoteDelegCert),
StakeRegDelegCert(StakeRegDelegCert),
VoteRegDelegCert(VoteRegDelegCert),
StakeVoteRegDelegCert(StakeVoteRegDelegCert),
AuthCommitteeHotCert(AuthCommitteeHotCert),
ResignCommitteeColdCert(ResignCommitteeColdCert),
RegDrepCert(RegDrepCert),
UnregDrepCert(UnregDrepCert),
UpdateDrepCert(UpdateDrepCert),
}Variants§
StakeRegistration(StakeRegistration)
Will be deprecated in the next era. Use RegCert instead which takes an explicit deposit amount, as that can change.
StakeDeregistration(StakeDeregistration)
Will be deprecated in the next era. Use UnregCert instead which takes an explicit deposit amount, as that can change.
StakeDelegation(StakeDelegation)
Delegate to a take pool only
PoolRegistration(PoolRegistration)
PoolRetirement(PoolRetirement)
RegCert(RegCert)
Registers a stake credential.
UnregCert(UnregCert)
Unregisters a stake credential.
VoteDelegCert(VoteDelegCert)
Delegate to a DRep for voting only
StakeVoteDelegCert(StakeVoteDelegCert)
Delegate to a stake pool and a DRep
StakeRegDelegCert(StakeRegDelegCert)
Register a stake credential and delegate to a pool in a single cert
VoteRegDelegCert(VoteRegDelegCert)
Register a stake credential and delegate to a DRep in a single cert
StakeVoteRegDelegCert(StakeVoteRegDelegCert)
Register a stake credential and delegate to a pool and a DRep in a single cert
AuthCommitteeHotCert(AuthCommitteeHotCert)
ResignCommitteeColdCert(ResignCommitteeColdCert)
RegDrepCert(RegDrepCert)
UnregDrepCert(UnregDrepCert)
UpdateDrepCert(UpdateDrepCert)
Implementations§
Source§impl Certificate
impl Certificate
Sourcepub fn new_stake_registration(stake_credential: StakeCredential) -> Self
pub fn new_stake_registration(stake_credential: StakeCredential) -> Self
Will be deprecated in the next era. Use RegCert instead which takes an explicit deposit amount, as that can change.
Sourcepub fn new_stake_deregistration(stake_credential: StakeCredential) -> Self
pub fn new_stake_deregistration(stake_credential: StakeCredential) -> Self
Will be deprecated in the next era. Use UnregCert instead which takes an explicit deposit amount, as that can change.
Sourcepub fn new_stake_delegation(
stake_credential: StakeCredential,
pool: Ed25519KeyHash,
) -> Self
pub fn new_stake_delegation( stake_credential: StakeCredential, pool: Ed25519KeyHash, ) -> Self
Delegate to a take pool only
pub fn new_pool_registration(pool_params: PoolParams) -> Self
pub fn new_pool_retirement(pool: Ed25519KeyHash, epoch: Epoch) -> Self
Sourcepub fn new_reg_cert(stake_credential: StakeCredential, deposit: Coin) -> Self
pub fn new_reg_cert(stake_credential: StakeCredential, deposit: Coin) -> Self
Registers a stake credential.
Sourcepub fn new_unreg_cert(stake_credential: StakeCredential, deposit: Coin) -> Self
pub fn new_unreg_cert(stake_credential: StakeCredential, deposit: Coin) -> Self
Unregisters a stake credential.
Sourcepub fn new_vote_deleg_cert(
stake_credential: StakeCredential,
d_rep: DRep,
) -> Self
pub fn new_vote_deleg_cert( stake_credential: StakeCredential, d_rep: DRep, ) -> Self
Delegate to a DRep for voting only
Sourcepub fn new_stake_vote_deleg_cert(
stake_credential: StakeCredential,
pool: Ed25519KeyHash,
d_rep: DRep,
) -> Self
pub fn new_stake_vote_deleg_cert( stake_credential: StakeCredential, pool: Ed25519KeyHash, d_rep: DRep, ) -> Self
Delegate to a stake pool and a DRep
Sourcepub fn new_stake_reg_deleg_cert(
stake_credential: StakeCredential,
pool: Ed25519KeyHash,
deposit: Coin,
) -> Self
pub fn new_stake_reg_deleg_cert( stake_credential: StakeCredential, pool: Ed25519KeyHash, deposit: Coin, ) -> Self
Register a stake credential and delegate to a pool in a single cert
Sourcepub fn new_vote_reg_deleg_cert(
stake_credential: StakeCredential,
d_rep: DRep,
deposit: Coin,
) -> Self
pub fn new_vote_reg_deleg_cert( stake_credential: StakeCredential, d_rep: DRep, deposit: Coin, ) -> Self
Register a stake credential and delegate to a DRep in a single cert
Sourcepub fn new_stake_vote_reg_deleg_cert(
stake_credential: StakeCredential,
pool: Ed25519KeyHash,
d_rep: DRep,
deposit: Coin,
) -> Self
pub fn new_stake_vote_reg_deleg_cert( stake_credential: StakeCredential, pool: Ed25519KeyHash, d_rep: DRep, deposit: Coin, ) -> Self
Register a stake credential and delegate to a pool and a DRep in a single cert
pub fn new_auth_committee_hot_cert( committee_cold_credential: CommitteeColdCredential, committee_hot_credential: CommitteeHotCredential, ) -> Self
pub fn new_resign_committee_cold_cert( committee_cold_credential: CommitteeColdCredential, anchor: Option<Anchor>, ) -> Self
pub fn new_reg_drep_cert( drep_credential: DrepCredential, deposit: Coin, anchor: Option<Anchor>, ) -> Self
pub fn new_unreg_drep_cert( drep_credential: DrepCredential, deposit: Coin, ) -> Self
pub fn new_update_drep_cert( drep_credential: DrepCredential, anchor: Option<Anchor>, ) -> Self
Trait Implementations§
Source§impl Clone for Certificate
impl Clone for Certificate
Source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Certificate
impl Debug for Certificate
Source§impl<'de> Deserialize<'de> for Certificate
impl<'de> Deserialize<'de> for Certificate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Deserialize for Certificate
impl Deserialize for Certificate
fn deserialize<R: BufRead + Seek>( raw: &mut Deserializer<R>, ) -> Result<Self, DeserializeError>
Source§fn from_cbor_bytes(data: &[u8]) -> Result<Self, DeserializeError>where
Self: Sized,
fn from_cbor_bytes(data: &[u8]) -> Result<Self, DeserializeError>where
Self: Sized,
Source§impl JsonSchema for Certificate
impl JsonSchema for Certificate
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl Serialize for Certificate
impl Serialize for Certificate
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, force_canonical: bool, ) -> Result<&'se mut Serializer<W>>
Source§fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl Freeze for Certificate
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromBytes for Twhere
T: Deserialize,
impl<T> FromBytes for Twhere
T: Deserialize,
fn from_bytes(data: Vec<u8>) -> Result<T, DeserializeError>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more