pub struct FormatEntry {
pub entry: Map<String, Value>,
pub source: String,
}Expand description
One line format of the registry: its keys as a formats file writes
them, which the grammar format of sokf info grammar defines, such as
template, example, and variants, and its source.
Fields§
§entry: Map<String, Value>The keys of the format as its formats file writes them, with a patch merged onto the entry that it patches.
source: StringWhere the format comes from: embedded, repo, the path of a file
of /.sokf/formats.d/, or the id of a schema.
Trait Implementations§
Source§impl Clone for FormatEntry
impl Clone for FormatEntry
Source§impl Debug for FormatEntry
impl Debug for FormatEntry
Source§impl JsonSchema for FormatEntry
impl JsonSchema for FormatEntry
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 FormatEntry
impl PartialEq for FormatEntry
Source§impl Serialize for FormatEntry
impl Serialize for FormatEntry
impl StructuralPartialEq for FormatEntry
Auto Trait Implementations§
impl Forget for FormatEntry
impl Freeze for FormatEntry
impl Move for FormatEntry
impl RefUnwindSafe for FormatEntry
impl Send for FormatEntry
impl Sync for FormatEntry
impl Unpin for FormatEntry
impl UnsafeUnpin for FormatEntry
impl UnwindSafe for FormatEntry
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