pub struct FinalizedContract { /* private fields */ }Expand description
Finalized contract artifact derived from one canonical normalized contract.
Stable inspection rows and schema-lowering signals come from the same
normalized contract uses, so downstream callers do not need to re-finalize
a super::ContractIr separately or hop through another wrapper type.
Implementations§
Source§impl FinalizedContract
impl FinalizedContract
Sourcepub fn uses(&self) -> &[ContractUse]
pub fn uses(&self) -> &[ContractUse]
Returns normalized contract uses in stable inspection order.
Sourcepub fn schema_signals(&self) -> &ContractSchemaSignals
pub fn schema_signals(&self) -> &ContractSchemaSignals
Returns path-local facts prepared for schema lowering.
Sourcepub fn document(&self) -> ContractDocument
pub fn document(&self) -> ContractDocument
Builds the versioned inspection document for this contract.
Sourcepub fn into_schema_signals(self) -> ContractSchemaSignals
pub fn into_schema_signals(self) -> ContractSchemaSignals
Consumes the contract and returns its schema-lowering signals.
Trait Implementations§
Source§impl Clone for FinalizedContract
impl Clone for FinalizedContract
Source§fn clone(&self) -> FinalizedContract
fn clone(&self) -> FinalizedContract
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 FinalizedContract
impl Debug for FinalizedContract
impl Eq for FinalizedContract
Source§impl PartialEq for FinalizedContract
impl PartialEq for FinalizedContract
impl StructuralPartialEq for FinalizedContract
Auto Trait Implementations§
impl Freeze for FinalizedContract
impl RefUnwindSafe for FinalizedContract
impl Send for FinalizedContract
impl Sync for FinalizedContract
impl Unpin for FinalizedContract
impl UnsafeUnpin for FinalizedContract
impl UnwindSafe for FinalizedContract
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.