pub struct OpCertWithoutColdVerificationKey {
pub start_kes_period: u64,
/* private fields */
}Expand description
Parsed Operational Certificate without cold verification key
Fields§
§start_kes_period: u64KES period at which KES key is initalized
Implementations§
Source§impl OpCertWithoutColdVerificationKey
impl OpCertWithoutColdVerificationKey
Trait Implementations§
Source§impl Clone for OpCertWithoutColdVerificationKey
impl Clone for OpCertWithoutColdVerificationKey
Source§fn clone(&self) -> OpCertWithoutColdVerificationKey
fn clone(&self) -> OpCertWithoutColdVerificationKey
Returns a duplicate 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<'de> Deserialize<'de> for OpCertWithoutColdVerificationKey
impl<'de> Deserialize<'de> for OpCertWithoutColdVerificationKey
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OpCertWithoutColdVerificationKey
impl PartialEq for OpCertWithoutColdVerificationKey
Source§fn eq(&self, other: &OpCertWithoutColdVerificationKey) -> bool
fn eq(&self, other: &OpCertWithoutColdVerificationKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl SerDeShelleyFileFormat for OpCertWithoutColdVerificationKey
impl SerDeShelleyFileFormat for OpCertWithoutColdVerificationKey
Source§const TYPE: &'static str = "NodeOperationalCertificateWithoutColdVerificationKey"
const TYPE: &'static str = "NodeOperationalCertificateWithoutColdVerificationKey"
The type of Cardano key
Source§const DESCRIPTION: &'static str = ""
const DESCRIPTION: &'static str = ""
The description of the Cardano key
Source§fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, CodecParseError>
fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, CodecParseError>
Deserialize a type
T: Serialize + DeserializeOwned from file following Cardano
Shelley file format.Source§fn to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), CodecParseError>
fn to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), CodecParseError>
Serialize a type
T: Serialize + DeserializeOwned to file following Cardano
Shelley file format.Source§fn to_cbor_bytes(&self) -> Result<Vec<u8>, CodecParseError>
fn to_cbor_bytes(&self) -> Result<Vec<u8>, CodecParseError>
Serialize the structure to a CBOR bytes representation.
Source§fn to_cbor_hex(&self) -> Result<String, CodecParseError>
fn to_cbor_hex(&self) -> Result<String, CodecParseError>
Serialize the structure to a CBOR hex representation.
Source§fn from_cbor_bytes(bytes: &[u8]) -> Result<Self, CodecParseError>
fn from_cbor_bytes(bytes: &[u8]) -> Result<Self, CodecParseError>
Deserialize a type
T: Serialize + DeserializeOwned from CBOR bytes representation.Source§fn from_cbor_hex(hex: &str) -> Result<Self, CodecParseError>
fn from_cbor_hex(hex: &str) -> Result<Self, CodecParseError>
Deserialize a type
T: Serialize + DeserializeOwned from CBOR hex representation.Source§impl TryFromBytes for OpCertWithoutColdVerificationKey
impl TryFromBytes for OpCertWithoutColdVerificationKey
Source§fn try_from_bytes(bytes: &[u8]) -> StdResult<Self>
fn try_from_bytes(bytes: &[u8]) -> StdResult<Self>
Try to convert from a bytes slice.
Source§fn try_from_bytes_hex(hex_string: &str) -> StdResult<Self>
fn try_from_bytes_hex(hex_string: &str) -> StdResult<Self>
Try to convert from hex string encoded bytes.
impl Eq for OpCertWithoutColdVerificationKey
impl StructuralPartialEq for OpCertWithoutColdVerificationKey
Auto Trait Implementations§
impl Freeze for OpCertWithoutColdVerificationKey
impl RefUnwindSafe for OpCertWithoutColdVerificationKey
impl Send for OpCertWithoutColdVerificationKey
impl Sync for OpCertWithoutColdVerificationKey
impl Unpin for OpCertWithoutColdVerificationKey
impl UnwindSafe for OpCertWithoutColdVerificationKey
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§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> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
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.
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.