#[non_exhaustive]pub struct HumanLoopDataAttributesBuilder { /* private fields */ }
Expand description
A builder for HumanLoopDataAttributes
.
Implementations§
source§impl HumanLoopDataAttributesBuilder
impl HumanLoopDataAttributesBuilder
sourcepub fn content_classifiers(self, input: ContentClassifier) -> Self
pub fn content_classifiers(self, input: ContentClassifier) -> Self
Appends an item to content_classifiers
.
To override the contents of this collection use set_content_classifiers
.
Sets whether the input image is free of personally identifiable information or adult content.
sourcepub fn set_content_classifiers(
self,
input: Option<Vec<ContentClassifier>>
) -> Self
pub fn set_content_classifiers( self, input: Option<Vec<ContentClassifier>> ) -> Self
Sets whether the input image is free of personally identifiable information or adult content.
sourcepub fn get_content_classifiers(&self) -> &Option<Vec<ContentClassifier>>
pub fn get_content_classifiers(&self) -> &Option<Vec<ContentClassifier>>
Sets whether the input image is free of personally identifiable information or adult content.
sourcepub fn build(self) -> HumanLoopDataAttributes
pub fn build(self) -> HumanLoopDataAttributes
Consumes the builder and constructs a HumanLoopDataAttributes
.
Trait Implementations§
source§impl Clone for HumanLoopDataAttributesBuilder
impl Clone for HumanLoopDataAttributesBuilder
source§fn clone(&self) -> HumanLoopDataAttributesBuilder
fn clone(&self) -> HumanLoopDataAttributesBuilder
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 Default for HumanLoopDataAttributesBuilder
impl Default for HumanLoopDataAttributesBuilder
source§fn default() -> HumanLoopDataAttributesBuilder
fn default() -> HumanLoopDataAttributesBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HumanLoopDataAttributesBuilder
impl PartialEq for HumanLoopDataAttributesBuilder
source§fn eq(&self, other: &HumanLoopDataAttributesBuilder) -> bool
fn eq(&self, other: &HumanLoopDataAttributesBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HumanLoopDataAttributesBuilder
Auto Trait Implementations§
impl Freeze for HumanLoopDataAttributesBuilder
impl RefUnwindSafe for HumanLoopDataAttributesBuilder
impl Send for HumanLoopDataAttributesBuilder
impl Sync for HumanLoopDataAttributesBuilder
impl Unpin for HumanLoopDataAttributesBuilder
impl UnwindSafe for HumanLoopDataAttributesBuilder
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> 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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.