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§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more