#[non_exhaustive]pub struct TrialComponentArtifactBuilder { /* private fields */ }
Expand description
A builder for TrialComponentArtifact
.
Implementations§
source§impl TrialComponentArtifactBuilder
impl TrialComponentArtifactBuilder
sourcepub fn media_type(self, input: impl Into<String>) -> Self
pub fn media_type(self, input: impl Into<String>) -> Self
The media type of the artifact, which indicates the type of data in the artifact file. The media type consists of a type and a subtype concatenated with a slash (/) character, for example, text/csv, image/jpeg, and s3/uri. The type specifies the category of the media. The subtype specifies the kind of data.
sourcepub fn set_media_type(self, input: Option<String>) -> Self
pub fn set_media_type(self, input: Option<String>) -> Self
The media type of the artifact, which indicates the type of data in the artifact file. The media type consists of a type and a subtype concatenated with a slash (/) character, for example, text/csv, image/jpeg, and s3/uri. The type specifies the category of the media. The subtype specifies the kind of data.
sourcepub fn get_media_type(&self) -> &Option<String>
pub fn get_media_type(&self) -> &Option<String>
The media type of the artifact, which indicates the type of data in the artifact file. The media type consists of a type and a subtype concatenated with a slash (/) character, for example, text/csv, image/jpeg, and s3/uri. The type specifies the category of the media. The subtype specifies the kind of data.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The location of the artifact.
This field is required.sourcepub fn build(self) -> TrialComponentArtifact
pub fn build(self) -> TrialComponentArtifact
Consumes the builder and constructs a TrialComponentArtifact
.
Trait Implementations§
source§impl Clone for TrialComponentArtifactBuilder
impl Clone for TrialComponentArtifactBuilder
source§fn clone(&self) -> TrialComponentArtifactBuilder
fn clone(&self) -> TrialComponentArtifactBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TrialComponentArtifactBuilder
impl Default for TrialComponentArtifactBuilder
source§fn default() -> TrialComponentArtifactBuilder
fn default() -> TrialComponentArtifactBuilder
source§impl PartialEq for TrialComponentArtifactBuilder
impl PartialEq for TrialComponentArtifactBuilder
source§fn eq(&self, other: &TrialComponentArtifactBuilder) -> bool
fn eq(&self, other: &TrialComponentArtifactBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.