pub struct Builder<T>(/* private fields */);
Expand description
A builder for Chunk
Implementations§
Source§impl Builder<TypeStage>
impl Builder<TypeStage>
Sourcepub fn type_(self, type_: ChunkType) -> Builder<LogicalSeriesRidStage>
pub fn type_(self, type_: ChunkType) -> Builder<LogicalSeriesRidStage>
Sets the type_
field.
Source§impl Builder<LogicalSeriesRidStage>
impl Builder<LogicalSeriesRidStage>
Sourcepub fn logical_series_rid(
self,
logical_series_rid: LogicalSeriesRid,
) -> Builder<StartTimestampStage>
pub fn logical_series_rid( self, logical_series_rid: LogicalSeriesRid, ) -> Builder<StartTimestampStage>
Sets the logical_series_rid
field.
Source§impl Builder<StartTimestampStage>
impl Builder<StartTimestampStage>
Sourcepub fn start_timestamp(
self,
start_timestamp: Timestamp,
) -> Builder<EndTimestampStage>
pub fn start_timestamp( self, start_timestamp: Timestamp, ) -> Builder<EndTimestampStage>
Sets the start_timestamp
field.
Source§impl Builder<EndTimestampStage>
impl Builder<EndTimestampStage>
Sourcepub fn end_timestamp(self, end_timestamp: Timestamp) -> Builder<CountStage>
pub fn end_timestamp(self, end_timestamp: Timestamp) -> Builder<CountStage>
Sets the end_timestamp
field.
Source§impl Builder<CountStage>
impl Builder<CountStage>
Sourcepub fn count(self, count: SafeLong) -> Builder<SizeInBytesStage>
pub fn count(self, count: SafeLong) -> Builder<SizeInBytesStage>
Sets the count
field.
Source§impl Builder<SizeInBytesStage>
impl Builder<SizeInBytesStage>
Sourcepub fn size_in_bytes(self, size_in_bytes: SafeLong) -> Builder<ResolutionStage>
pub fn size_in_bytes(self, size_in_bytes: SafeLong) -> Builder<ResolutionStage>
Sets the size_in_bytes
field.
Source§impl Builder<ResolutionStage>
impl Builder<ResolutionStage>
Sourcepub fn resolution(self, resolution: Resolution) -> Builder<HandleStage>
pub fn resolution(self, resolution: Resolution) -> Builder<HandleStage>
Sets the resolution
field.
Source§impl Builder<HandleStage>
impl Builder<HandleStage>
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn logical_series_rid(self, logical_series_rid: LogicalSeriesRid) -> Self
pub fn logical_series_rid(self, logical_series_rid: LogicalSeriesRid) -> Self
Sets the logical_series_rid
field.
Sourcepub fn start_timestamp(self, start_timestamp: Timestamp) -> Self
pub fn start_timestamp(self, start_timestamp: Timestamp) -> Self
Sets the start_timestamp
field.
Sourcepub fn end_timestamp(self, end_timestamp: Timestamp) -> Self
pub fn end_timestamp(self, end_timestamp: Timestamp) -> Self
Sets the end_timestamp
field.
Sourcepub fn size_in_bytes(self, size_in_bytes: SafeLong) -> Self
pub fn size_in_bytes(self, size_in_bytes: SafeLong) -> Self
Sets the size_in_bytes
field.
Sourcepub fn resolution(self, resolution: Resolution) -> Self
pub fn resolution(self, resolution: Resolution) -> Self
Sets the resolution
field.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request