pub struct Builder<T>(/* private fields */);Expand description
A builder for StreamingSource
Implementations§
Source§impl Builder<DatasetRidStage>
impl Builder<DatasetRidStage>
Sourcepub fn dataset_rid(self, dataset_rid: DatasetRid) -> Builder<SessionCountStage>
pub fn dataset_rid(self, dataset_rid: DatasetRid) -> Builder<SessionCountStage>
Sets the dataset_rid field.
Source§impl Builder<SessionCountStage>
impl Builder<SessionCountStage>
Sourcepub fn session_count(
self,
session_count: SafeLong,
) -> Builder<TotalPointsCountStage>
pub fn session_count( self, session_count: SafeLong, ) -> Builder<TotalPointsCountStage>
Sets the session_count field.
Source§impl Builder<TotalPointsCountStage>
impl Builder<TotalPointsCountStage>
Sourcepub fn total_points_count(
self,
total_points_count: SafeLong,
) -> Builder<EarliestCreatedAtStage>
pub fn total_points_count( self, total_points_count: SafeLong, ) -> Builder<EarliestCreatedAtStage>
Sets the total_points_count field.
Source§impl Builder<EarliestCreatedAtStage>
impl Builder<EarliestCreatedAtStage>
Sourcepub fn earliest_created_at(
self,
earliest_created_at: Timestamp,
) -> Builder<LatestLastSeenAtStage>
pub fn earliest_created_at( self, earliest_created_at: Timestamp, ) -> Builder<LatestLastSeenAtStage>
Sets the earliest_created_at field.
Source§impl Builder<LatestLastSeenAtStage>
impl Builder<LatestLastSeenAtStage>
Sourcepub fn latest_last_seen_at(
self,
latest_last_seen_at: Timestamp,
) -> Builder<AnyInProgressStage>
pub fn latest_last_seen_at( self, latest_last_seen_at: Timestamp, ) -> Builder<AnyInProgressStage>
Sets the latest_last_seen_at field.
Source§impl Builder<AnyInProgressStage>
impl Builder<AnyInProgressStage>
Sourcepub fn any_in_progress(self, any_in_progress: bool) -> Builder<Complete>
pub fn any_in_progress(self, any_in_progress: bool) -> Builder<Complete>
Sets the any_in_progress field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn source(self, source: impl Into<Option<StreamingSessionSource>>) -> Self
pub fn source(self, source: impl Into<Option<StreamingSessionSource>>) -> Self
Sets the source field.
Sourcepub fn dataset_rid(self, dataset_rid: DatasetRid) -> Self
pub fn dataset_rid(self, dataset_rid: DatasetRid) -> Self
Sets the dataset_rid field.
Sourcepub fn session_count(self, session_count: SafeLong) -> Self
pub fn session_count(self, session_count: SafeLong) -> Self
Sets the session_count field.
Sourcepub fn total_points_count(self, total_points_count: SafeLong) -> Self
pub fn total_points_count(self, total_points_count: SafeLong) -> Self
Sets the total_points_count field.
Sourcepub fn earliest_created_at(self, earliest_created_at: Timestamp) -> Self
pub fn earliest_created_at(self, earliest_created_at: Timestamp) -> Self
Sets the earliest_created_at field.
Sourcepub fn latest_last_seen_at(self, latest_last_seen_at: Timestamp) -> Self
pub fn latest_last_seen_at(self, latest_last_seen_at: Timestamp) -> Self
Sets the latest_last_seen_at field.
Sourcepub fn merged_bounds(self, merged_bounds: impl Into<Option<Range>>) -> Self
pub fn merged_bounds(self, merged_bounds: impl Into<Option<Range>>) -> Self
Sets the merged_bounds field.
Sourcepub fn any_in_progress(self, any_in_progress: bool) -> Self
pub fn any_in_progress(self, any_in_progress: bool) -> Self
Sets the any_in_progress field.
Sourcepub fn build(self) -> StreamingSource
pub fn build(self) -> StreamingSource
Consumes the builder, returning a StreamingSource.
Trait Implementations§
Source§impl Default for Builder<DatasetRidStage>
impl Default for Builder<DatasetRidStage>
Source§impl From<StreamingSource> for Builder<Complete>
impl From<StreamingSource> for Builder<Complete>
Source§fn from(v: StreamingSource) -> Self
fn from(v: StreamingSource) -> 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> UnsafeUnpin for Builder<T>where
T: UnsafeUnpin,
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