pub struct Format {
pub name: &'static str,
pub func: fn(v: &Value) -> Result<(), Box<dyn Error>>,
}
Expand description
Defines format for format
keyword.
Fields§
§name: &'static str
Name of the format
func: fn(v: &Value) -> Result<(), Box<dyn Error>>
validates given value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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