Struct rusoto_kinesis::PutRecordsRequestEntry
source · [−]pub struct PutRecordsRequestEntry {
pub data: Bytes,
pub explicit_hash_key: Option<String>,
pub partition_key: String,
}
Expand description
Represents the output for PutRecords
.
Fields
data: Bytes
The data blob to put into the record, which is base64-encoded when the blob is serialized. When the data blob (the payload before base64-encoding) is added to the partition key size, the total size must not exceed the maximum record size (1 MiB).
explicit_hash_key: Option<String>
The hash value used to determine explicitly the shard that the data record is assigned to by overriding the partition key hash.
partition_key: String
Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
Trait Implementations
sourceimpl Clone for PutRecordsRequestEntry
impl Clone for PutRecordsRequestEntry
sourcefn clone(&self) -> PutRecordsRequestEntry
fn clone(&self) -> PutRecordsRequestEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PutRecordsRequestEntry
impl Debug for PutRecordsRequestEntry
sourceimpl Default for PutRecordsRequestEntry
impl Default for PutRecordsRequestEntry
sourcefn default() -> PutRecordsRequestEntry
fn default() -> PutRecordsRequestEntry
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PutRecordsRequestEntry> for PutRecordsRequestEntry
impl PartialEq<PutRecordsRequestEntry> for PutRecordsRequestEntry
sourcefn eq(&self, other: &PutRecordsRequestEntry) -> bool
fn eq(&self, other: &PutRecordsRequestEntry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutRecordsRequestEntry) -> bool
fn ne(&self, other: &PutRecordsRequestEntry) -> bool
This method tests for !=
.
sourceimpl Serialize for PutRecordsRequestEntry
impl Serialize for PutRecordsRequestEntry
impl StructuralPartialEq for PutRecordsRequestEntry
Auto Trait Implementations
impl RefUnwindSafe for PutRecordsRequestEntry
impl Send for PutRecordsRequestEntry
impl Sync for PutRecordsRequestEntry
impl Unpin for PutRecordsRequestEntry
impl UnwindSafe for PutRecordsRequestEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more