struct ParsedSchema {
fields: Vec<(String, String)>,
error: Option<String>,
}Expand description
A Zod object schema reduced to an ordered list of (field, value expression).
Fields§
§fields: Vec<(String, String)>§error: Option<String>Set when part of the expression was not understood. Fields parsed before that point are kept, but callers must treat them as untrustworthy.
Trait Implementations§
Source§impl Clone for ParsedSchema
impl Clone for ParsedSchema
Source§fn clone(&self) -> ParsedSchema
fn clone(&self) -> ParsedSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParsedSchema
impl Debug for ParsedSchema
Source§impl Default for ParsedSchema
impl Default for ParsedSchema
Source§fn default() -> ParsedSchema
fn default() -> ParsedSchema
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParsedSchema
impl RefUnwindSafe for ParsedSchema
impl Send for ParsedSchema
impl Sync for ParsedSchema
impl Unpin for ParsedSchema
impl UnsafeUnpin for ParsedSchema
impl UnwindSafe for ParsedSchema
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