#[repr(C)]pub struct ProviderDescriptor {
pub canonical_iri: CanonicalIri,
pub short_alias: &'static str,
pub versions: ContractVersionAxes,
pub supported_targets: TargetProfileMask,
pub sub_namespaces: &'static [SubNamespaceDescriptor],
pub max_ontology_quins: u32,
}Expand description
Top-level descriptor for a VibeScript extension provider.
Fields§
§canonical_iri: CanonicalIriCanonical namespace IRI + q_hash (e.g. "https://qualiadb.org/ext/etalon/mechanics").
short_alias: &'static strDefault short import alias (e.g. "mech").
versions: ContractVersionAxesFive independent version axes (language, abi, host, provider, ontology).
supported_targets: TargetProfileMaskSupported execution target profiles.
sub_namespaces: &'static [SubNamespaceDescriptor]Exported sub-namespaces.
max_ontology_quins: u32Maximum allowed ontology NQuin48 records for this provider.
Implementations§
Source§impl ProviderDescriptor
impl ProviderDescriptor
Sourcepub const fn const_new(
canonical_iri_str: &'static str,
short_alias: &'static str,
provider_version: SemVer64,
ontology_version: SemVer64,
supported_targets: TargetProfileMask,
sub_namespaces: &'static [SubNamespaceDescriptor],
max_ontology_quins: u32,
) -> Self
pub const fn const_new( canonical_iri_str: &'static str, short_alias: &'static str, provider_version: SemVer64, ontology_version: SemVer64, supported_targets: TargetProfileMask, sub_namespaces: &'static [SubNamespaceDescriptor], max_ontology_quins: u32, ) -> Self
Compile-time constructor for a provider descriptor using ContractVersionAxes::v0_3_default.
Trait Implementations§
Source§impl Clone for ProviderDescriptor
impl Clone for ProviderDescriptor
impl Copy for ProviderDescriptor
Source§impl Debug for ProviderDescriptor
impl Debug for ProviderDescriptor
impl Eq for ProviderDescriptor
Source§impl PartialEq for ProviderDescriptor
impl PartialEq for ProviderDescriptor
impl StructuralPartialEq for ProviderDescriptor
Auto Trait Implementations§
impl Freeze for ProviderDescriptor
impl RefUnwindSafe for ProviderDescriptor
impl Send for ProviderDescriptor
impl Sync for ProviderDescriptor
impl Unpin for ProviderDescriptor
impl UnsafeUnpin for ProviderDescriptor
impl UnwindSafe for ProviderDescriptor
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