pub struct CmcCyclesReport {
pub context: CmcReportContext,
pub rate: CmcIcpXdrConversionRate,
pub cycles_per_xdr: u128,
pub cycles_per_xdr_source: String,
pub cycles_per_icp: u128,
pub cycles_per_icp_formula: String,
pub certification: CmcCertification,
}Expand description
CmcCyclesReport
Cycles conversion derived from a certified CMC rate and the IC protocol constant.
Fields§
§context: CmcReportContextQuery and authority provenance.
rate: CmcIcpXdrConversionRateRaw CMC conversion-rate value used by the derivation.
cycles_per_xdr: u128IC protocol constant for the number of cycles corresponding to one XDR.
cycles_per_xdr_source: StringAuthority label for cycles_per_xdr, distinct from the certified CMC rate.
cycles_per_icp: u128Number of cycles corresponding to one ICP at the certified rate.
cycles_per_icp_formula: StringExact formula used to derive cycles_per_icp.
certification: CmcCertificationAuthenticated certificate and witness evidence for rate.
Trait Implementations§
Source§impl Clone for CmcCyclesReport
impl Clone for CmcCyclesReport
Source§fn clone(&self) -> CmcCyclesReport
fn clone(&self) -> CmcCyclesReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CmcCyclesReport
impl Debug for CmcCyclesReport
Source§impl<'de> Deserialize<'de> for CmcCyclesReport
impl<'de> Deserialize<'de> for CmcCyclesReport
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
impl Eq for CmcCyclesReport
Source§impl PartialEq for CmcCyclesReport
impl PartialEq for CmcCyclesReport
Source§impl Serialize for CmcCyclesReport
impl Serialize for CmcCyclesReport
impl StructuralPartialEq for CmcCyclesReport
Auto Trait Implementations§
impl Freeze for CmcCyclesReport
impl RefUnwindSafe for CmcCyclesReport
impl Send for CmcCyclesReport
impl Sync for CmcCyclesReport
impl Unpin for CmcCyclesReport
impl UnsafeUnpin for CmcCyclesReport
impl UnwindSafe for CmcCyclesReport
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