pub struct AppendRequest {
pub stream_id: BucketStreamId,
pub content_type: String,
pub payload: Bytes,
pub close_after: bool,
pub stream_seq: Option<String>,
pub producer: Option<ProducerRequest>,
pub now_ms: u64,
}Fields§
§stream_id: BucketStreamId§content_type: String§payload: Bytes§close_after: bool§stream_seq: Option<String>§producer: Option<ProducerRequest>§now_ms: u64Implementations§
Source§impl AppendRequest
impl AppendRequest
pub fn new(stream_id: BucketStreamId, payload_len: u64) -> Self
pub fn from_bytes(stream_id: BucketStreamId, payload: impl Into<Bytes>) -> Self
pub fn payload_len(&self) -> u64
Trait Implementations§
Source§impl Clone for AppendRequest
impl Clone for AppendRequest
Source§fn clone(&self) -> AppendRequest
fn clone(&self) -> AppendRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AppendRequest
impl Debug for AppendRequest
Source§impl From<&AppendRequest> for GroupWriteCommand
impl From<&AppendRequest> for GroupWriteCommand
Source§fn from(request: &AppendRequest) -> Self
fn from(request: &AppendRequest) -> Self
Converts to this type from the input type.
Source§impl From<AppendRequest> for GroupWriteCommand
impl From<AppendRequest> for GroupWriteCommand
Source§fn from(request: AppendRequest) -> Self
fn from(request: AppendRequest) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AppendRequest
impl PartialEq for AppendRequest
Source§fn eq(&self, other: &AppendRequest) -> bool
fn eq(&self, other: &AppendRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AppendRequest
impl StructuralPartialEq for AppendRequest
Auto Trait Implementations§
impl !Freeze for AppendRequest
impl RefUnwindSafe for AppendRequest
impl Send for AppendRequest
impl Sync for AppendRequest
impl Unpin for AppendRequest
impl UnsafeUnpin for AppendRequest
impl UnwindSafe for AppendRequest
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