pub struct Builder { /* private fields */ }Implementations§
Source§impl Builder
impl Builder
pub fn new() -> Builder
pub fn build<F>(rules: F) -> Builder
pub fn get_required(&self) -> &Vec<Param>
pub fn get_optional(&self) -> &Vec<Param>
pub fn get_validators(&self) -> &Validators
pub fn req_defined(&mut self, name: &str)
pub fn req_typed(&mut self, name: &str, coercer: Box<dyn Coercer + Send + Sync>)
pub fn req_nested<F>( &mut self, name: &str, coercer: Box<dyn Coercer + Send + Sync>, nest_def: F, )
pub fn req<F>(&mut self, name: &str, param_builder: F)
pub fn opt_defined(&mut self, name: &str)
pub fn opt_typed(&mut self, name: &str, coercer: Box<dyn Coercer + Send + Sync>)
pub fn opt_nested<F>( &mut self, name: &str, coercer: Box<dyn Coercer + Send + Sync>, nest_def: F, )
pub fn opt<F>(&mut self, name: &str, param_builder: F)
pub fn validate( &mut self, validator: Box<dyn Validator + Send + Sync + 'static>, )
pub fn validate_with<F>(&mut self, validator: F)
pub fn mutually_exclusive(&mut self, params: &[&str])
pub fn exactly_one_of(&mut self, params: &[&str])
pub fn at_least_one_of(&mut self, params: &[&str])
pub fn schema_id(&mut self, id: Url)
pub fn schema<F>(&mut self, build: F)
pub fn build_schemes(&mut self, scope: &mut Scope) -> Result<(), SchemaError>
pub fn process( &self, val: &mut Value, scope: &Option<&Scope>, ) -> ValidationState
pub fn process_nest( &self, val: &mut Value, path: &str, scope: &Option<&Scope>, ) -> ValidationState
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
impl !UnwindSafe for Builder
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