pub struct MetadataEnvelope {
pub doc: Option<String>,
pub aliases: Vec<String>,
pub examples: Vec<String>,
pub deprecated: Option<String>,
pub role: Option<Role>,
}Expand description
Typed metadata envelope. Holds non-validation, non-rendering-critical information (docs, aliases, examples, deprecation, role). Per-scalar validation constraints live on the relevant scalar’s typed substructure, not here.
Fields§
§doc: Option<String>§aliases: Vec<String>§examples: Vec<String>Canonical-encoded example values (JSON strings). Empty = no examples. Kept as strings so metadata is self-contained on the type side and does not have to cross-reference an accompanying value tree.
deprecated: Option<String>Deprecation message; none means not deprecated.
role: Option<Role>Optional role annotation tagging a type with a consumer-facing intent.
Trait Implementations§
Source§impl Clone for MetadataEnvelope
impl Clone for MetadataEnvelope
Source§fn clone(&self) -> MetadataEnvelope
fn clone(&self) -> MetadataEnvelope
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 moreAuto Trait Implementations§
impl Freeze for MetadataEnvelope
impl RefUnwindSafe for MetadataEnvelope
impl Send for MetadataEnvelope
impl Sync for MetadataEnvelope
impl Unpin for MetadataEnvelope
impl UnsafeUnpin for MetadataEnvelope
impl UnwindSafe for MetadataEnvelope
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