vector/sinks/aws_kinesis/
record.rsuse std::future::Future;
use aws_smithy_runtime_api::client::{orchestrator::HttpResponse, result::SdkError};
use bytes::Bytes;
use super::KinesisResponse;
pub trait Record {
type T;
fn new(payload_bytes: &Bytes, partition_key: &str) -> Self;
fn encoded_length(&self) -> usize;
fn get(self) -> Self::T;
}
pub trait SendRecord {
type T;
type E;
fn send(
&self,
records: Vec<Self::T>,
stream_name: String,
) -> impl Future<Output = Result<KinesisResponse, SdkError<Self::E, HttpResponse>>> + Send;
}