pub struct RuntimeValidator { /* private fields */ }Expand description
Runtime configuration validator
Implementations§
Source§impl RuntimeValidator
impl RuntimeValidator
pub fn new() -> Self
pub fn register_schema(&mut self, name: String, schema: ValidationSchema)
pub fn register_custom_validator<F>(&mut self, name: String, validator: F)
pub fn validate_configuration<T>(
&self,
config: &T,
schema_name: &str,
) -> ValidationReportwhere
T: Debug,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeValidator
impl !RefUnwindSafe for RuntimeValidator
impl Send for RuntimeValidator
impl Sync for RuntimeValidator
impl Unpin for RuntimeValidator
impl !UnwindSafe for RuntimeValidator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more