#[non_exhaustive]pub struct DatasetMetadataBuilder { /* private fields */ }Expand description
A builder for DatasetMetadata.
Implementations§
source§impl DatasetMetadataBuilder
impl DatasetMetadataBuilder
sourcepub fn dataset_type(self, input: impl Into<String>) -> Self
pub fn dataset_type(self, input: impl Into<String>) -> Self
The type of the dataset.
sourcepub fn set_dataset_type(self, input: Option<String>) -> Self
pub fn set_dataset_type(self, input: Option<String>) -> Self
The type of the dataset.
sourcepub fn get_dataset_type(&self) -> &Option<String>
pub fn get_dataset_type(&self) -> &Option<String>
The type of the dataset.
sourcepub fn creation_timestamp(self, input: DateTime) -> Self
pub fn creation_timestamp(self, input: DateTime) -> Self
The Unix timestamp for the date and time that the dataset was created.
sourcepub fn set_creation_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_creation_timestamp(self, input: Option<DateTime>) -> Self
The Unix timestamp for the date and time that the dataset was created.
sourcepub fn get_creation_timestamp(&self) -> &Option<DateTime>
pub fn get_creation_timestamp(&self) -> &Option<DateTime>
The Unix timestamp for the date and time that the dataset was created.
sourcepub fn status(self, input: DatasetStatus) -> Self
pub fn status(self, input: DatasetStatus) -> Self
The status for the dataset.
sourcepub fn set_status(self, input: Option<DatasetStatus>) -> Self
pub fn set_status(self, input: Option<DatasetStatus>) -> Self
The status for the dataset.
sourcepub fn get_status(&self) -> &Option<DatasetStatus>
pub fn get_status(&self) -> &Option<DatasetStatus>
The status for the dataset.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
The status message for the dataset.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
The status message for the dataset.
sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
The status message for the dataset.
sourcepub fn build(self) -> DatasetMetadata
pub fn build(self) -> DatasetMetadata
Consumes the builder and constructs a DatasetMetadata.
Trait Implementations§
source§impl Clone for DatasetMetadataBuilder
impl Clone for DatasetMetadataBuilder
source§fn clone(&self) -> DatasetMetadataBuilder
fn clone(&self) -> DatasetMetadataBuilder
Returns a copy of the value. Read more
1.0.0 · 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 DatasetMetadataBuilder
impl Debug for DatasetMetadataBuilder
source§impl Default for DatasetMetadataBuilder
impl Default for DatasetMetadataBuilder
source§fn default() -> DatasetMetadataBuilder
fn default() -> DatasetMetadataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DatasetMetadataBuilder
impl PartialEq for DatasetMetadataBuilder
source§fn eq(&self, other: &DatasetMetadataBuilder) -> bool
fn eq(&self, other: &DatasetMetadataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DatasetMetadataBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DatasetMetadataBuilder
impl Send for DatasetMetadataBuilder
impl Sync for DatasetMetadataBuilder
impl Unpin for DatasetMetadataBuilder
impl UnwindSafe for DatasetMetadataBuilder
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>
Creates a shared type from an unshared type.