pub trait LoggableBatch {
// Required method
fn to_arrow(&self) -> Result<Arc<dyn Array>, SerializationError>;
}Expand description
A LoggableBatch represents an array’s worth of Loggable instances, ready to be
serialized.
LoggableBatch is carefully designed to be erasable (“object-safe”), so that it is possible
to build heterogeneous collections of LoggableBatchs (e.g. Vec<dyn LoggableBatch>).
This erasability is what makes extending Archetypes possible with little effort.
You should almost never need to implement LoggableBatch manually, as it is already
blanket implemented for most common use cases (arrays/vectors/slices of loggables, etc).