pub struct ConstructRegistration {
pub id: String,
pub library_id: String,
pub version: String,
pub construct_family: String,
pub keyword: String,
pub scope: String,
pub grammar: Option<ConstructGrammar>,
pub fields: Vec<ConstructField>,
pub requires: Vec<ConstructInterface>,
pub provides: Vec<ConstructInterface>,
pub lowering_target: String,
pub target_capability: Option<String>,
}Fields§
§id: String§library_id: String§version: String§construct_family: String§keyword: String§scope: String§grammar: Option<ConstructGrammar>The DR-0011 grammar object, when the manifest declares one
(spec/construct-grammar.md “Two-Shape Meta-Grammar”). fields is then
derived from it (ConstructGrammar::derive_fields) rather than read
from the manifest. None for constructs registered without a grammar
(legacy flat fields[] manifests, artifact round-trips).
fields: Vec<ConstructField>§requires: Vec<ConstructInterface>§provides: Vec<ConstructInterface>§lowering_target: String§target_capability: Option<String>Trait Implementations§
Source§impl Clone for ConstructRegistration
impl Clone for ConstructRegistration
Source§fn clone(&self) -> ConstructRegistration
fn clone(&self) -> ConstructRegistration
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 ConstructRegistration
impl Debug for ConstructRegistration
impl Eq for ConstructRegistration
Source§impl PartialEq for ConstructRegistration
impl PartialEq for ConstructRegistration
Source§fn eq(&self, other: &ConstructRegistration) -> bool
fn eq(&self, other: &ConstructRegistration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConstructRegistration
Auto Trait Implementations§
impl Freeze for ConstructRegistration
impl RefUnwindSafe for ConstructRegistration
impl Send for ConstructRegistration
impl Sync for ConstructRegistration
impl Unpin for ConstructRegistration
impl UnsafeUnpin for ConstructRegistration
impl UnwindSafe for ConstructRegistration
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