pub struct ContractRegistry {
pub libraries: Vec<LibraryRegistration>,
pub constructs: Vec<ConstructRegistration>,
pub effect_contracts: Vec<EffectContract>,
}Expand description
Compile-time library and effect-contract registry.
This is the concrete data boundary between source-level package/library meaning and runtime provider execution. It is intentionally plain data: compiler and CLI surfaces can expose it without giving package code any parser or runtime authority.
Fields§
§libraries: Vec<LibraryRegistration>§constructs: Vec<ConstructRegistration>§effect_contracts: Vec<EffectContract>Implementations§
Source§impl ContractRegistry
impl ContractRegistry
pub fn merge(&mut self, other: ContractRegistry)
pub fn upsert_library(&mut self, library: LibraryRegistration)
pub fn upsert_construct(&mut self, form: ConstructRegistration)
pub fn upsert_effect_contract(&mut self, contract: EffectContract)
pub fn validate(&self) -> Vec<ContractRegistryDiagnostic>
Trait Implementations§
Source§impl Clone for ContractRegistry
impl Clone for ContractRegistry
Source§fn clone(&self) -> ContractRegistry
fn clone(&self) -> ContractRegistry
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 ContractRegistry
impl Debug for ContractRegistry
Source§impl Default for ContractRegistry
impl Default for ContractRegistry
Source§fn default() -> ContractRegistry
fn default() -> ContractRegistry
Returns the “default value” for a type. Read more
impl Eq for ContractRegistry
Source§impl PartialEq for ContractRegistry
impl PartialEq for ContractRegistry
Source§fn eq(&self, other: &ContractRegistry) -> bool
fn eq(&self, other: &ContractRegistry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContractRegistry
Auto Trait Implementations§
impl Freeze for ContractRegistry
impl RefUnwindSafe for ContractRegistry
impl Send for ContractRegistry
impl Sync for ContractRegistry
impl Unpin for ContractRegistry
impl UnsafeUnpin for ContractRegistry
impl UnwindSafe for ContractRegistry
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