pub struct AppendInput {
pub records: Vec<AppendRecord>,
pub match_seq_num: Option<SeqNum>,
pub fencing_token: Option<FencingToken>,
}Expand description
Payload of an append request.
Fields§
§records: Vec<AppendRecord>Batch of records to append atomically, which must contain at least one record, and no more than 1000. The total size of a batch of records may not exceed 1 MiB of metered bytes.
match_seq_num: Option<SeqNum>Enforce that the sequence number assigned to the first record matches.
fencing_token: Option<FencingToken>Enforce a fencing token, which starts out as an empty string that can be overridden by a fence command record.
Implementations§
Source§impl AppendInput
impl AppendInput
pub fn decode(self, format: Format) -> Result<AppendInput, ValidationError>
Trait Implementations§
Source§impl Clone for AppendInput
impl Clone for AppendInput
Source§fn clone(&self) -> AppendInput
fn clone(&self) -> AppendInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppendInput
impl Debug for AppendInput
Source§impl<'de> Deserialize<'de> for AppendInput
impl<'de> Deserialize<'de> for AppendInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppendInput
impl RefUnwindSafe for AppendInput
impl Send for AppendInput
impl Sync for AppendInput
impl Unpin for AppendInput
impl UnwindSafe for AppendInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more