pub struct Builder<T>(/* private fields */);Expand description
A builder for DatasetFile
Implementations§
Source§impl Builder<IdStage>
impl Builder<IdStage>
Sourcepub fn id(self, id: DatasetFileId) -> Builder<DatasetRidStage>
pub fn id(self, id: DatasetFileId) -> Builder<DatasetRidStage>
Sets the id field.
Source§impl Builder<DatasetRidStage>
impl Builder<DatasetRidStage>
Sourcepub fn dataset_rid(self, dataset_rid: DatasetRid) -> Builder<NameStage>
pub fn dataset_rid(self, dataset_rid: DatasetRid) -> Builder<NameStage>
Sets the dataset_rid field.
Source§impl Builder<HandleStage>
impl Builder<HandleStage>
Sourcepub fn handle(self, handle: Handle) -> Builder<UploadedAtStage>
pub fn handle(self, handle: Handle) -> Builder<UploadedAtStage>
Sets the handle field.
Source§impl Builder<UploadedAtStage>
impl Builder<UploadedAtStage>
Sourcepub fn uploaded_at(
self,
uploaded_at: DateTime<Utc>,
) -> Builder<IngestStatusStage>
pub fn uploaded_at( self, uploaded_at: DateTime<Utc>, ) -> Builder<IngestStatusStage>
Sets the uploaded_at field.
Source§impl Builder<IngestStatusStage>
impl Builder<IngestStatusStage>
Sourcepub fn ingest_status(self, ingest_status: IngestStatusV2) -> Builder<Complete>
pub fn ingest_status(self, ingest_status: IngestStatusV2) -> Builder<Complete>
Sets the ingest_status field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn id(self, id: DatasetFileId) -> Self
pub fn id(self, id: DatasetFileId) -> Self
Sets the id 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 uploaded_at(self, uploaded_at: DateTime<Utc>) -> Self
pub fn uploaded_at(self, uploaded_at: DateTime<Utc>) -> Self
Sets the uploaded_at field.
Sourcepub fn ingested_at(self, ingested_at: impl Into<Option<DateTime<Utc>>>) -> Self
pub fn ingested_at(self, ingested_at: impl Into<Option<DateTime<Utc>>>) -> Self
Sets the ingested_at field.
Sourcepub fn ingest_status(self, ingest_status: IngestStatusV2) -> Self
pub fn ingest_status(self, ingest_status: IngestStatusV2) -> Self
Sets the ingest_status field.
Sourcepub fn timestamp_metadata(
self,
timestamp_metadata: impl Into<Option<TimestampMetadata>>,
) -> Self
pub fn timestamp_metadata( self, timestamp_metadata: impl Into<Option<TimestampMetadata>>, ) -> Self
Sets the timestamp_metadata field.
Sourcepub fn ingest_tag_metadata(
self,
ingest_tag_metadata: impl Into<Option<IngestTagMetadata>>,
) -> Self
pub fn ingest_tag_metadata( self, ingest_tag_metadata: impl Into<Option<IngestTagMetadata>>, ) -> Self
Sets the ingest_tag_metadata field.
Sourcepub fn origin_file_paths(
self,
origin_file_paths: impl Into<Option<Vec<String>>>,
) -> Self
pub fn origin_file_paths( self, origin_file_paths: impl Into<Option<Vec<String>>>, ) -> Self
Sets the origin_file_paths field.
Sourcepub fn ingest_job_rid(
self,
ingest_job_rid: impl Into<Option<IngestJobRid>>,
) -> Self
pub fn ingest_job_rid( self, ingest_job_rid: impl Into<Option<IngestJobRid>>, ) -> Self
Sets the ingest_job_rid field.
Sourcepub fn deleted_at(self, deleted_at: impl Into<Option<DateTime<Utc>>>) -> Self
pub fn deleted_at(self, deleted_at: impl Into<Option<DateTime<Utc>>>) -> Self
Sets the deleted_at field.
Sourcepub fn build(self) -> DatasetFile
pub fn build(self) -> DatasetFile
Consumes the builder, returning a DatasetFile.
Trait Implementations§
Source§impl From<DatasetFile> for Builder<Complete>
impl From<DatasetFile> for Builder<Complete>
Source§fn from(v: DatasetFile) -> Self
fn from(v: DatasetFile) -> 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