pub struct Catalog {
pub schema: Option<String>,
pub version: u32,
pub title: Option<String>,
pub schemas: Vec<SchemaEntry>,
pub groups: Vec<CatalogGroup>,
}Expand description
Schema catalog index that maps file patterns to JSON Schema URLs.
A catalog is a collection of schema entries used by editors and tools to
automatically associate files with the correct schema for validation and
completion. Follows the SchemaStore catalog format.
Fields§
§schema: Option<String>The $schema URL for this catalog. Defaults to the Lintel catalog schema.
version: u32The catalog format version.
title: Option<String>An optional human-readable title for the catalog.
schemas: Vec<SchemaEntry>The list of schema entries in this catalog.
groups: Vec<CatalogGroup>Optional grouping of related schemas for catalog consumers that
support richer organization. Consumers that don’t understand
groups simply ignore this field.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Catalog
impl<'de> Deserialize<'de> for Catalog
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Catalog
impl JsonSchema for Catalog
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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