pub struct GenericSingleObjectWriter { /* private fields */ }Expand description
Encode Values to the single object encoding.
Use SpecificSingleObjectWriter if you need to serialize Rust types.
Implementations§
Source§impl GenericSingleObjectWriter
impl GenericSingleObjectWriter
pub fn new_with_capacity( schema: &Schema, initial_buffer_cap: usize, ) -> AvroResult<GenericSingleObjectWriter>
pub fn new_with_capacity_and_header_builder<HB: HeaderBuilder>( schema: &Schema, initial_buffer_cap: usize, header_builder: &HB, ) -> AvroResult<GenericSingleObjectWriter>
Sourcepub fn write_value_ref<W: Write>(
&mut self,
v: &Value,
writer: &mut W,
) -> AvroResult<usize>
pub fn write_value_ref<W: Write>( &mut self, v: &Value, writer: &mut W, ) -> AvroResult<usize>
Write the referenced Value to the provided Write object. Returns a result with the number of bytes written including the header
Sourcepub fn write_value<W: Write>(
&mut self,
v: Value,
writer: &mut W,
) -> AvroResult<usize>
pub fn write_value<W: Write>( &mut self, v: Value, writer: &mut W, ) -> AvroResult<usize>
Write the Value to the provided Write object. Returns a result with the number of bytes written including the header
Auto Trait Implementations§
impl Freeze for GenericSingleObjectWriter
impl RefUnwindSafe for GenericSingleObjectWriter
impl Send for GenericSingleObjectWriter
impl Sync for GenericSingleObjectWriter
impl Unpin for GenericSingleObjectWriter
impl UnsafeUnpin for GenericSingleObjectWriter
impl UnwindSafe for GenericSingleObjectWriter
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