pub struct ValidatorConfig {
pub addon_specs: HashMap<String, Vec<(String, CommandSpecification)>>,
}Expand description
Configuration for the validator
Fields§
§addon_specs: HashMap<String, Vec<(String, CommandSpecification)>>Addon specifications for validation
Implementations§
Source§impl ValidatorConfig
impl ValidatorConfig
pub fn new() -> Self
Sourcepub fn add_addon_specs(
&mut self,
namespace: String,
specs: Vec<PreCommandSpecification>,
)
pub fn add_addon_specs( &mut self, namespace: String, specs: Vec<PreCommandSpecification>, )
Add specifications from an addon
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidatorConfig
impl RefUnwindSafe for ValidatorConfig
impl Send for ValidatorConfig
impl Sync for ValidatorConfig
impl Unpin for ValidatorConfig
impl UnsafeUnpin for ValidatorConfig
impl UnwindSafe for ValidatorConfig
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