pub struct CompiledObjectSchema { /* private fields */ }Implementations§
Source§impl CompiledObjectSchema
impl CompiledObjectSchema
pub fn new(keys: &[&str]) -> Self
pub fn keys(&self) -> impl ExactSizeIterator<Item = &str>
pub fn to_json_string<'a, I>(&self, values: I) -> Result<String, JsonError>where
I: IntoIterator<Item = &'a JsonValue>,
pub fn write_json_bytes<'a, I>(
&self,
out: &mut Vec<u8>,
values: I,
) -> Result<(), JsonError>where
I: IntoIterator<Item = &'a JsonValue>,
Trait Implementations§
Source§impl Clone for CompiledObjectSchema
impl Clone for CompiledObjectSchema
Source§fn clone(&self) -> CompiledObjectSchema
fn clone(&self) -> CompiledObjectSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 CompiledObjectSchema
impl Debug for CompiledObjectSchema
Source§impl PartialEq for CompiledObjectSchema
impl PartialEq for CompiledObjectSchema
impl Eq for CompiledObjectSchema
impl StructuralPartialEq for CompiledObjectSchema
Auto Trait Implementations§
impl Freeze for CompiledObjectSchema
impl RefUnwindSafe for CompiledObjectSchema
impl Send for CompiledObjectSchema
impl Sync for CompiledObjectSchema
impl Unpin for CompiledObjectSchema
impl UnsafeUnpin for CompiledObjectSchema
impl UnwindSafe for CompiledObjectSchema
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