pub struct ConfigReport {
pub file: String,
pub exists: bool,
pub committed: bool,
pub valid: bool,
pub error: Option<String>,
pub sections: Vec<ConfigSection>,
pub diff: Option<String>,
}Expand description
Result of speccoder config: the project’s configuration as a catalogue
of every key, each with its type, default and value (when set).
Fields§
§file: StringThe file, relative to the project root.
exists: boolWhether it exists.
committed: boolWhether it is committed as it is on disk (speccoder reads committed configuration only, so an uncommitted change is not yet in force).
valid: boolWhether every parser accepts it.
error: Option<String>The first parser’s complaint, when not valid.
sections: Vec<ConfigSection>Sections, in the reference’s order.
diff: Option<String>The uncommitted change, as a diff, when there is one.
Trait Implementations§
Source§impl Clone for ConfigReport
impl Clone for ConfigReport
Source§impl Debug for ConfigReport
impl Debug for ConfigReport
Source§impl JsonSchema for ConfigReport
impl JsonSchema for ConfigReport
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 ConfigReport
impl PartialEq for ConfigReport
Source§impl Serialize for ConfigReport
impl Serialize for ConfigReport
impl StructuralPartialEq for ConfigReport
Auto Trait Implementations§
impl Freeze for ConfigReport
impl RefUnwindSafe for ConfigReport
impl Send for ConfigReport
impl Sync for ConfigReport
impl Unpin for ConfigReport
impl UnsafeUnpin for ConfigReport
impl UnwindSafe for ConfigReport
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