pub struct TombiSchemaExt {
pub toml_version: Option<String>,
pub table_keys_order: Option<Value>,
pub additional_key_label: Option<String>,
pub array_values_order: Option<Value>,
}Expand description
Tombi JSON Schema extensions (x-tombi-*).
Tombi is a TOML language server and formatter. Unlike
TaploSchemaExt (a single nested object
under x-taplo), Tombi extensions are separate top-level keys on the
schema object. This struct is
#[serde(flatten)]-ed into
Schema.
§Keys
| JSON key | Rust field | Purpose |
|---|---|---|
x-tombi-toml-version | toml_version | Required TOML spec version |
x-tombi-table-keys-order | table_keys_order | Preferred key ordering |
x-tombi-additional-key-label | additional_key_label | Label for additionalProperties keys |
x-tombi-array-values-order | array_values_order | Preferred array element ordering |
Fields§
§toml_version: Option<String>TOML specification version required by this schema (e.g. "1.0.0").
table_keys_order: Option<Value>Preferred ordering of table keys for formatting.
The value is tool-defined and typically an array of key names or an ordering strategy object.
additional_key_label: Option<String>Display label for keys matched by additionalProperties.
array_values_order: Option<Value>Preferred ordering of array element values for formatting.
The value is tool-defined and typically an array of values or an ordering strategy object.
Trait Implementations§
Source§impl Clone for TombiSchemaExt
impl Clone for TombiSchemaExt
Source§fn clone(&self) -> TombiSchemaExt
fn clone(&self) -> TombiSchemaExt
Returns a duplicate of the value. Read more
1.0.0 · 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 TombiSchemaExt
impl Debug for TombiSchemaExt
Source§impl Default for TombiSchemaExt
impl Default for TombiSchemaExt
Source§fn default() -> TombiSchemaExt
fn default() -> TombiSchemaExt
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TombiSchemaExt
impl<'de> Deserialize<'de> for TombiSchemaExt
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 TombiSchemaExt
impl JsonSchema for TombiSchemaExt
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 moreSource§impl PartialEq for TombiSchemaExt
impl PartialEq for TombiSchemaExt
Source§impl Serialize for TombiSchemaExt
impl Serialize for TombiSchemaExt
impl Eq for TombiSchemaExt
impl StructuralPartialEq for TombiSchemaExt
Auto Trait Implementations§
impl Freeze for TombiSchemaExt
impl RefUnwindSafe for TombiSchemaExt
impl Send for TombiSchemaExt
impl Sync for TombiSchemaExt
impl Unpin for TombiSchemaExt
impl UnsafeUnpin for TombiSchemaExt
impl UnwindSafe for TombiSchemaExt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.