pub struct StructuredCompilationReceiptV1 {
pub constraints: Digest,
pub compiler: Digest,
pub grammar: Digest,
pub feedback: Digest,
pub plan: Digest,
}Expand description
Evidence that an identified compiler produced one complete projection plan.
Fields§
§constraints: DigestExact source schema or constraint identity.
compiler: DigestComplete compiler identity.
grammar: DigestExact emitted eager/lazy grammar identity.
feedback: DigestExact emitted byte-feedback identity.
plan: DigestComplete resulting projection-plan identity.
Implementations§
Source§impl StructuredCompilationReceiptV1
impl StructuredCompilationReceiptV1
Sourcepub fn validate_for(
&self,
plan: &StructuredProjectionPlanV1,
) -> Result<(), CoreError>
pub fn validate_for( &self, plan: &StructuredProjectionPlanV1, ) -> Result<(), CoreError>
Validates compilation evidence against its compiler output.
§Errors
Returns an error when any source, compiler, grammar, feedback, or plan identity differs.
Sourcepub fn digest_for(
&self,
plan: &StructuredProjectionPlanV1,
) -> Result<Digest, CoreError>
pub fn digest_for( &self, plan: &StructuredProjectionPlanV1, ) -> Result<Digest, CoreError>
Returns the exact validated compilation identity.
§Errors
Returns a validation or serialization error.
Trait Implementations§
Source§impl Clone for StructuredCompilationReceiptV1
impl Clone for StructuredCompilationReceiptV1
Source§fn clone(&self) -> StructuredCompilationReceiptV1
fn clone(&self) -> StructuredCompilationReceiptV1
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<'de> Deserialize<'de> for StructuredCompilationReceiptV1
impl<'de> Deserialize<'de> for StructuredCompilationReceiptV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StructuredCompilationReceiptV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StructuredCompilationReceiptV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StructuredCompilationReceiptV1
Source§impl Serialize for StructuredCompilationReceiptV1
impl Serialize for StructuredCompilationReceiptV1
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 StructuredCompilationReceiptV1
Auto Trait Implementations§
impl Freeze for StructuredCompilationReceiptV1
impl RefUnwindSafe for StructuredCompilationReceiptV1
impl Send for StructuredCompilationReceiptV1
impl Sync for StructuredCompilationReceiptV1
impl Unpin for StructuredCompilationReceiptV1
impl UnsafeUnpin for StructuredCompilationReceiptV1
impl UnwindSafe for StructuredCompilationReceiptV1
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