Trait vector::sinks::aws_kinesis::record::Record

source ·
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§

source

type T

Required Methods§

source

fn new(payload_bytes: &Bytes, partition_key: &str) -> Self

Create a new instance of this record.

source

fn encoded_length(&self) -> usize

Returns the encoded length of the record.

source

fn get(self) -> Self::T

Moves the contained record to the caller.

Object Safety§

This trait is not object safe.

Implementors§