pub struct SchemaEntry {
pub name: String,
pub slug: Option<String>,
pub file_match: Vec<String>,
pub url: Option<String>,
pub schema_file: Option<String>,
pub crate_: Option<String>,
pub description: Option<String>,
pub versioned: Option<bool>,
pub required: Option<bool>,
pub skip: Option<StringOrBool>,
pub if_condition: Option<String>,
}Expand description
One schema registration. url XOR schema_file selects the mode.
Fields§
§name: StringCatalog display name (may be Title Case, e.g. Anodizer).
slug: Option<String>Vendor filename / url basename. Defaults to name slugified. Vendor-only.
file_match: Vec<String>Well-known config filenames this schema validates (folder globs need **/).
url: Option<String>EXTERNAL mode: the URL you host the schema at.
schema_file: Option<String>VENDOR mode: repo-root-relative path to the generated schema file.
crate_: Option<String>Crate whose version a vendored/versioned schema tracks (per-crate workspaces).
description: Option<String>Catalog description (required at publish time; derived if omitted).
versioned: Option<bool>Emit a version-suffixed vendored file + versions map. Vendor-only.
required: Option<bool>Whether a failure here fails the release. Collapsed across schemas.
skip: Option<StringOrBool>Per-entry skip. Alias: disable.
if_condition: Option<String>Per-entry Tera condition.
Implementations§
Source§impl SchemaEntry
impl SchemaEntry
Trait Implementations§
Source§impl Clone for SchemaEntry
impl Clone for SchemaEntry
Source§fn clone(&self) -> SchemaEntry
fn clone(&self) -> SchemaEntry
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 SchemaEntry
impl Debug for SchemaEntry
Source§impl Default for SchemaEntry
impl Default for SchemaEntry
Source§fn default() -> SchemaEntry
fn default() -> SchemaEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaEntrywhere
SchemaEntry: Default,
impl<'de> Deserialize<'de> for SchemaEntrywhere
SchemaEntry: Default,
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 SchemaEntry
impl JsonSchema for SchemaEntry
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 SchemaEntry
impl RefUnwindSafe for SchemaEntry
impl Send for SchemaEntry
impl Sync for SchemaEntry
impl Unpin for SchemaEntry
impl UnsafeUnpin for SchemaEntry
impl UnwindSafe for SchemaEntry
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