pub struct CompiledRowSchema { /* private fields */ }Implementations§
Source§impl CompiledRowSchema
impl CompiledRowSchema
pub fn new(keys: &[&str]) -> Self
pub fn object_schema(&self) -> &CompiledObjectSchema
pub fn to_json_string<'a, R, I>(&self, rows: R) -> Result<String, JsonError>
pub fn write_json_bytes<'a, R, I>( &self, out: &mut Vec<u8>, rows: R, ) -> Result<(), JsonError>
pub fn write_row_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 CompiledRowSchema
impl Clone for CompiledRowSchema
Source§fn clone(&self) -> CompiledRowSchema
fn clone(&self) -> CompiledRowSchema
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 CompiledRowSchema
impl Debug for CompiledRowSchema
Source§impl PartialEq for CompiledRowSchema
impl PartialEq for CompiledRowSchema
impl Eq for CompiledRowSchema
impl StructuralPartialEq for CompiledRowSchema
Auto Trait Implementations§
impl Freeze for CompiledRowSchema
impl RefUnwindSafe for CompiledRowSchema
impl Send for CompiledRowSchema
impl Sync for CompiledRowSchema
impl Unpin for CompiledRowSchema
impl UnsafeUnpin for CompiledRowSchema
impl UnwindSafe for CompiledRowSchema
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