pub trait Record {
type T;
// Required methods
fn new(payload_bytes: &Bytes, partition_key: &str) -> Self;
fn encoded_length(&self) -> usize;
fn get(self) -> Self::T;
}
Expand description
An AWS Kinesis record type primarily to store the underlying aws crates’ actual record T
, and
to abstract the encoded length calculation.
Required Associated Types§
Required Methods§
sourcefn new(payload_bytes: &Bytes, partition_key: &str) -> Self
fn new(payload_bytes: &Bytes, partition_key: &str) -> Self
Create a new instance of this record.
sourcefn encoded_length(&self) -> usize
fn encoded_length(&self) -> usize
Returns the encoded length of the record.
Object Safety§
This trait is not object safe.