Struct apache_avro::SpecificSingleObjectWriter
source · pub struct SpecificSingleObjectWriter<T>where
T: AvroSchema,{ /* private fields */ }
Expand description
Writer that encodes messages according to the single object encoding v1 spec
Implementations§
source§impl<T> SpecificSingleObjectWriter<T>where
T: AvroSchema,
impl<T> SpecificSingleObjectWriter<T>where T: AvroSchema,
pub fn with_capacity( buffer_cap: usize ) -> AvroResult<SpecificSingleObjectWriter<T>>
source§impl<T> SpecificSingleObjectWriter<T>where
T: AvroSchema + Into<Value>,
impl<T> SpecificSingleObjectWriter<T>where T: AvroSchema + Into<Value>,
sourcepub fn write_value<W: Write>(
&mut self,
data: T,
writer: &mut W
) -> AvroResult<usize>
pub fn write_value<W: Write>( &mut self, data: T, writer: &mut W ) -> AvroResult<usize>
Write the Into<Value>
to the provided Write object. Returns a result with the number
of bytes written including the header
source§impl<T> SpecificSingleObjectWriter<T>where
T: AvroSchema + Serialize,
impl<T> SpecificSingleObjectWriter<T>where T: AvroSchema + Serialize,
Auto Trait Implementations§
impl<T> RefUnwindSafe for SpecificSingleObjectWriter<T>where T: RefUnwindSafe,
impl<T> Send for SpecificSingleObjectWriter<T>where T: Send,
impl<T> Sync for SpecificSingleObjectWriter<T>where T: Sync,
impl<T> Unpin for SpecificSingleObjectWriter<T>where T: Unpin,
impl<T> UnwindSafe for SpecificSingleObjectWriter<T>where T: UnwindSafe,
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