pub struct LegacyReceiptProjectionV1 { /* private fields */ }Expand description
Non-authoritative compatibility projection derived from legacy ReceiptSigned.
Its numeric cost fields are model price-table estimates. The legacy baseline repeats that estimate for wire compatibility and is not an independently observed or modeled baseline.
Implementations§
Source§impl LegacyReceiptProjectionV1
impl LegacyReceiptProjectionV1
Sourcepub const fn legacy_receipt(&self) -> &ExecutionReceiptV1
pub const fn legacy_receipt(&self) -> &ExecutionReceiptV1
Borrows the non-authoritative legacy receipt payload.
Sourcepub const fn cost_classification(&self) -> ReceiptValueClassificationV1
pub const fn cost_classification(&self) -> ReceiptValueClassificationV1
Classifies the legacy cost from whether model usage was observed.
Sourcepub const fn baseline_cost_classification(&self) -> ReceiptValueClassificationV1
pub const fn baseline_cost_classification(&self) -> ReceiptValueClassificationV1
The compatibility baseline is not independently modeled or observed.
Sourcepub fn into_legacy_receipt(self) -> ExecutionReceiptV1
pub fn into_legacy_receipt(self) -> ExecutionReceiptV1
Consumes this wrapper for explicitly legacy interoperability.
Trait Implementations§
Source§impl Clone for LegacyReceiptProjectionV1
impl Clone for LegacyReceiptProjectionV1
Source§fn clone(&self) -> LegacyReceiptProjectionV1
fn clone(&self) -> LegacyReceiptProjectionV1
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 LegacyReceiptProjectionV1
impl Debug for LegacyReceiptProjectionV1
Source§impl<'de> Deserialize<'de> for LegacyReceiptProjectionV1
impl<'de> Deserialize<'de> for LegacyReceiptProjectionV1
Source§fn deserialize<D>(
deserializer: D,
) -> Result<LegacyReceiptProjectionV1, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<LegacyReceiptProjectionV1, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LegacyReceiptProjectionV1
impl Serialize for LegacyReceiptProjectionV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LegacyReceiptProjectionV1
Auto Trait Implementations§
impl Forget for LegacyReceiptProjectionV1
impl Freeze for LegacyReceiptProjectionV1where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<EvidenceRefV1>: Freeze,
PhantomData<CapabilityBindingV1>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for LegacyReceiptProjectionV1
impl RefUnwindSafe for LegacyReceiptProjectionV1
impl Send for LegacyReceiptProjectionV1
impl Sync for LegacyReceiptProjectionV1
impl Unpin for LegacyReceiptProjectionV1
impl UnsafeUnpin for LegacyReceiptProjectionV1where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<EvidenceRefV1>: UnsafeUnpin,
PhantomData<CapabilityBindingV1>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for LegacyReceiptProjectionV1
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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 more