pub struct CustomDataDecoder;Expand description
Decoder for custom data types that are identified at runtime by metadata (e.g. type_name).
Only Rust-registered custom types (e.g. RustTestCustomData, MacroYieldCurveData) can be
decoded. Unknown types return an error.
Important: The caller must ensure that any Rust custom data types are registered
via ensure_custom_data_registered::<T>() before use.
Trait Implementations§
Source§impl Debug for CustomDataDecoder
impl Debug for CustomDataDecoder
Source§impl DecodeDataFromRecordBatch for CustomDataDecoder
impl DecodeDataFromRecordBatch for CustomDataDecoder
Source§fn decode_data_batch(
metadata: &HashMap<String, String>,
record_batch: RecordBatch,
) -> Result<Vec<Data>, EncodingError>
fn decode_data_batch( metadata: &HashMap<String, String>, record_batch: RecordBatch, ) -> Result<Vec<Data>, EncodingError>
Auto Trait Implementations§
impl Freeze for CustomDataDecoder
impl RefUnwindSafe for CustomDataDecoder
impl Send for CustomDataDecoder
impl Sync for CustomDataDecoder
impl Unpin for CustomDataDecoder
impl UnsafeUnpin for CustomDataDecoder
impl UnwindSafe for CustomDataDecoder
Blanket Implementations§
impl<T> Allocation for T
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