pub struct Builder<T>(/* private fields */);
Expand description
A builder for ExportDataRequest
Implementations§
Source§impl Builder<FormatStage>
impl Builder<FormatStage>
Sourcepub fn format(self, format: ExportFormat) -> Builder<StartTimeStage>
pub fn format(self, format: ExportFormat) -> Builder<StartTimeStage>
Sets the format
field.
Source§impl Builder<StartTimeStage>
impl Builder<StartTimeStage>
Sourcepub fn start_time(self, start_time: Timestamp) -> Builder<EndTimeStage>
pub fn start_time(self, start_time: Timestamp) -> Builder<EndTimeStage>
Sets the start_time
field.
Source§impl Builder<EndTimeStage>
impl Builder<EndTimeStage>
Sourcepub fn end_time(self, end_time: Timestamp) -> Builder<ResolutionStage>
pub fn end_time(self, end_time: Timestamp) -> Builder<ResolutionStage>
Sets the end_time
field.
Source§impl Builder<ResolutionStage>
impl Builder<ResolutionStage>
Sourcepub fn resolution(self, resolution: ResolutionOption) -> Builder<ChannelsStage>
pub fn resolution(self, resolution: ResolutionOption) -> Builder<ChannelsStage>
Sets the resolution
field.
Source§impl Builder<ChannelsStage>
impl Builder<ChannelsStage>
Sourcepub fn channels(self, channels: ExportChannels) -> Builder<ContextStage>
pub fn channels(self, channels: ExportChannels) -> Builder<ContextStage>
Sets the channels
field.
Source§impl Builder<ContextStage>
impl Builder<ContextStage>
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn format(self, format: ExportFormat) -> Self
pub fn format(self, format: ExportFormat) -> Self
Sets the format
field.
Sourcepub fn compression(
self,
compression: impl Into<Option<CompressionFormat>>,
) -> Self
pub fn compression( self, compression: impl Into<Option<CompressionFormat>>, ) -> Self
Sets the compression
field.
Sourcepub fn start_time(self, start_time: Timestamp) -> Self
pub fn start_time(self, start_time: Timestamp) -> Self
Sets the start_time
field.
Sourcepub fn resolution(self, resolution: ResolutionOption) -> Self
pub fn resolution(self, resolution: ResolutionOption) -> Self
Sets the resolution
field.
Sourcepub fn channels(self, channels: ExportChannels) -> Self
pub fn channels(self, channels: ExportChannels) -> Self
Sets the channels
field.
Sourcepub fn build(self) -> ExportDataRequest
pub fn build(self) -> ExportDataRequest
Consumes the builder, returning a ExportDataRequest
.
Trait Implementations§
Source§impl Default for Builder<FormatStage>
impl Default for Builder<FormatStage>
Source§impl From<ExportDataRequest> for Builder<Complete>
impl From<ExportDataRequest> for Builder<Complete>
Source§fn from(v: ExportDataRequest) -> Self
fn from(v: ExportDataRequest) -> Self
Converts to this type from the input type.
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