pub struct FormatsJson {
pub types: BTreeMap<String, FormatType>,
pub registry: BTreeMap<String, FormatEntry>,
}Expand description
The registry of sokf info formats --json: the types and the formats of
the registry that the command prints as YAML, in the shape of a formats
file, each entry with its source (CLI-5_AC-38).
Fields§
§types: BTreeMap<String, FormatType>The placeholder types, by name, an empty map where the registry declares none.
registry: BTreeMap<String, FormatEntry>The line formats, by name, an empty map where the registry holds none.
Trait Implementations§
Source§impl Clone for FormatsJson
impl Clone for FormatsJson
Source§impl Debug for FormatsJson
impl Debug for FormatsJson
Source§impl JsonSchema for FormatsJson
impl JsonSchema for FormatsJson
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 FormatsJson
impl PartialEq for FormatsJson
Source§impl Serialize for FormatsJson
impl Serialize for FormatsJson
impl StructuralPartialEq for FormatsJson
Auto Trait Implementations§
impl Forget for FormatsJson
impl Freeze for FormatsJson
impl Move for FormatsJson
impl RefUnwindSafe for FormatsJson
impl Send for FormatsJson
impl Sync for FormatsJson
impl Unpin for FormatsJson
impl UnsafeUnpin for FormatsJson
impl UnwindSafe for FormatsJson
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