Struct mithril_aggregator::database::record::CertificateRecord
source · pub struct CertificateRecord {Show 14 fields
pub certificate_id: String,
pub parent_certificate_id: Option<String>,
pub message: String,
pub signature: HexEncodedKey,
pub aggregate_verification_key: HexEncodedAggregateVerificationKey,
pub epoch: Epoch,
pub network: String,
pub signed_entity_type: SignedEntityType,
pub protocol_version: ProtocolVersion,
pub protocol_parameters: ProtocolParameters,
pub protocol_message: ProtocolMessage,
pub signers: Vec<StakeDistributionParty>,
pub initiated_at: DateTime<Utc>,
pub sealed_at: DateTime<Utc>,
}
Expand description
Certificate record is the representation of a stored certificate.
Fields§
§certificate_id: String
Certificate id.
parent_certificate_id: Option<String>
Parent Certificate id.
message: String
Message that is signed.
signature: HexEncodedKey
Signature of the certificate. Note: multi-signature if parent certificate id is set, genesis signature otherwise.
aggregate_verification_key: HexEncodedAggregateVerificationKey
Aggregate verification key Note: used only if signature is a multi-signature
epoch: Epoch
Epoch of creation of the certificate.
network: String
Cardano network of the certificate.
signed_entity_type: SignedEntityType
Signed entity type of the message
protocol_version: ProtocolVersion
Protocol Version (semver)
protocol_parameters: ProtocolParameters
Protocol parameters.
protocol_message: ProtocolMessage
Structured message that is used to create the signed message
signers: Vec<StakeDistributionParty>
The list of the active signers with their stakes
initiated_at: DateTime<Utc>
Date and time when the certificate was initiated
sealed_at: DateTime<Utc>
Date and time when the certificate was sealed
Trait Implementations§
source§impl Clone for CertificateRecord
impl Clone for CertificateRecord
source§fn clone(&self) -> CertificateRecord
fn clone(&self) -> CertificateRecord
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 CertificateRecord
impl Debug for CertificateRecord
source§impl From<Certificate> for CertificateRecord
impl From<Certificate> for CertificateRecord
source§fn from(other: Certificate) -> Self
fn from(other: Certificate) -> Self
Converts to this type from the input type.
source§impl From<CertificateRecord> for Certificate
impl From<CertificateRecord> for Certificate
source§fn from(other: CertificateRecord) -> Self
fn from(other: CertificateRecord) -> Self
Converts to this type from the input type.
source§impl From<CertificateRecord> for CertificateListItemMessage
impl From<CertificateRecord> for CertificateListItemMessage
source§fn from(value: CertificateRecord) -> Self
fn from(value: CertificateRecord) -> Self
Converts to this type from the input type.
source§impl From<CertificateRecord> for CertificateMessage
impl From<CertificateRecord> for CertificateMessage
source§fn from(value: CertificateRecord) -> Self
fn from(value: CertificateRecord) -> Self
Converts to this type from the input type.
source§impl PartialEq for CertificateRecord
impl PartialEq for CertificateRecord
source§impl SqLiteEntity for CertificateRecord
impl SqLiteEntity for CertificateRecord
source§fn hydrate(row: Row) -> Result<Self, HydrationError>where
Self: Sized,
fn hydrate(row: Row) -> Result<Self, HydrationError>where
Self: Sized,
This method is intended to be used when creating new instances from SQL
result rows. This is the place to grab data, check consistency and types
and return the entity if possible.
source§fn get_projection() -> Projection
fn get_projection() -> Projection
Construct a Projection that will allow to hydrate this
SqLiteEntity
.impl StructuralPartialEq for CertificateRecord
Auto Trait Implementations§
impl Freeze for CertificateRecord
impl RefUnwindSafe for CertificateRecord
impl Send for CertificateRecord
impl Sync for CertificateRecord
impl Unpin for CertificateRecord
impl UnwindSafe for CertificateRecord
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 moresource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.