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>Free-form documentation string.
aliases: Vec<String>Alternative names this type is also known by.
examples: Vec<String>Canonical-encoded example values, each as a JSON string. Empty = no examples. Stored 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.
Implementations§
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 moreSource§impl Debug for MetadataEnvelope
impl Debug for MetadataEnvelope
Source§impl Default for MetadataEnvelope
impl Default for MetadataEnvelope
Source§fn default() -> MetadataEnvelope
fn default() -> MetadataEnvelope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetadataEnvelope
impl<'de> Deserialize<'de> for MetadataEnvelope
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MetadataEnvelope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MetadataEnvelope, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MetadataEnvelope
Source§impl FromSchema for MetadataEnvelope
impl FromSchema for MetadataEnvelope
fn from_value(value: &SchemaValue) -> Result<MetadataEnvelope, FromSchemaError>
Source§impl IntoSchema for MetadataEnvelope
impl IntoSchema for MetadataEnvelope
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for MetadataEnvelope
impl PartialEq for MetadataEnvelope
Source§impl Serialize for MetadataEnvelope
impl Serialize for MetadataEnvelope
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MetadataEnvelope
Auto 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