pub trait FromPayload: Sized {
// Required method
fn from_batch(batch: &RecordBatch) -> Result<Self>;
}Expand description
Reading a typed value out of a decoded payload.
Implemented by every AstrsMessage in this module, and separately by the
read-only view types that cannot be constructed from scratch.
Required Methods§
Sourcefn from_batch(batch: &RecordBatch) -> Result<Self>
fn from_batch(batch: &RecordBatch) -> Result<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".