pub struct ConfigSchema {
pub required_keys: Vec<String>,
pub optional_keys: HashMap<String, Value>,
pub validation_rules: HashMap<String, ValidationRule>,
}Expand description
Schema for validating workspace configuration
Fields§
§required_keys: Vec<String>Required configuration keys
optional_keys: HashMap<String, Value>Optional configuration keys with defaults
validation_rules: HashMap<String, ValidationRule>Validation rules for configuration values
Trait Implementations§
Source§impl Clone for ConfigSchema
impl Clone for ConfigSchema
Source§fn clone(&self) -> ConfigSchema
fn clone(&self) -> ConfigSchema
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 ConfigSchema
impl Debug for ConfigSchema
Source§impl Default for ConfigSchema
impl Default for ConfigSchema
Source§impl<'de> Deserialize<'de> for ConfigSchema
impl<'de> Deserialize<'de> for ConfigSchema
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
Auto Trait Implementations§
impl Freeze for ConfigSchema
impl RefUnwindSafe for ConfigSchema
impl Send for ConfigSchema
impl Sync for ConfigSchema
impl Unpin for ConfigSchema
impl UnwindSafe for ConfigSchema
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