#[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 ==
.impl StructuralPartialEq for TrialComponentArtifactBuilder
Auto Trait Implementations§
impl Freeze for TrialComponentArtifactBuilder
impl RefUnwindSafe for TrialComponentArtifactBuilder
impl Send for TrialComponentArtifactBuilder
impl Sync for TrialComponentArtifactBuilder
impl Unpin for TrialComponentArtifactBuilder
impl UnwindSafe for TrialComponentArtifactBuilder
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more