pub enum ConfigResult {
Template(String),
TemplateWritten {
path: PathBuf,
},
Schema(String),
SchemaWritten {
path: PathBuf,
},
KeyValue {
key: String,
value: String,
doc: Vec<String>,
},
ValueSet {
key: String,
value: String,
},
ValueUnset {
key: String,
},
Listing {
entries: Vec<(String, String)>,
},
}Expand description
Result of a config operation. Returned to the caller for display.
Variants§
Template(String)
A generated TOML template string.
TemplateWritten
Confirmation that a template was written to a file.
Schema(String)
A generated JSON Schema document (already serialized).
SchemaWritten
Confirmation that a JSON Schema document was written to a file.
KeyValue
A key’s resolved value and its doc comment.
ValueSet
Confirmation that a value was persisted.
ValueUnset
Confirmation that a value was removed.
Listing
All resolved configuration key-value pairs.
Trait Implementations§
Source§impl Clone for ConfigResult
impl Clone for ConfigResult
Source§fn clone(&self) -> ConfigResult
fn clone(&self) -> ConfigResult
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 ConfigResult
impl Debug for ConfigResult
Source§impl Display for ConfigResult
impl Display for ConfigResult
Source§impl PartialEq for ConfigResult
impl PartialEq for ConfigResult
Source§fn eq(&self, other: &ConfigResult) -> bool
fn eq(&self, other: &ConfigResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConfigResult
Auto Trait Implementations§
impl Freeze for ConfigResult
impl RefUnwindSafe for ConfigResult
impl Send for ConfigResult
impl Sync for ConfigResult
impl Unpin for ConfigResult
impl UnsafeUnpin for ConfigResult
impl UnwindSafe for ConfigResult
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