#[non_exhaustive]pub struct DatasetImageStatsBuilder { /* private fields */ }Expand description
A builder for DatasetImageStats.
Implementations§
source§impl DatasetImageStatsBuilder
impl DatasetImageStatsBuilder
sourcepub fn set_labeled(self, input: Option<i32>) -> Self
pub fn set_labeled(self, input: Option<i32>) -> Self
The total number of labeled images.
sourcepub fn get_labeled(&self) -> &Option<i32>
pub fn get_labeled(&self) -> &Option<i32>
The total number of labeled images.
sourcepub fn set_normal(self, input: Option<i32>) -> Self
pub fn set_normal(self, input: Option<i32>) -> Self
The total number of images labeled as normal.
sourcepub fn get_normal(&self) -> &Option<i32>
pub fn get_normal(&self) -> &Option<i32>
The total number of images labeled as normal.
sourcepub fn set_anomaly(self, input: Option<i32>) -> Self
pub fn set_anomaly(self, input: Option<i32>) -> Self
the total number of images labeled as an anomaly.
sourcepub fn get_anomaly(&self) -> &Option<i32>
pub fn get_anomaly(&self) -> &Option<i32>
the total number of images labeled as an anomaly.
sourcepub fn build(self) -> DatasetImageStats
pub fn build(self) -> DatasetImageStats
Consumes the builder and constructs a DatasetImageStats.
Trait Implementations§
source§impl Clone for DatasetImageStatsBuilder
impl Clone for DatasetImageStatsBuilder
source§fn clone(&self) -> DatasetImageStatsBuilder
fn clone(&self) -> DatasetImageStatsBuilder
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 DatasetImageStatsBuilder
impl Debug for DatasetImageStatsBuilder
source§impl Default for DatasetImageStatsBuilder
impl Default for DatasetImageStatsBuilder
source§fn default() -> DatasetImageStatsBuilder
fn default() -> DatasetImageStatsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DatasetImageStatsBuilder
impl PartialEq for DatasetImageStatsBuilder
source§fn eq(&self, other: &DatasetImageStatsBuilder) -> bool
fn eq(&self, other: &DatasetImageStatsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DatasetImageStatsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DatasetImageStatsBuilder
impl Send for DatasetImageStatsBuilder
impl Sync for DatasetImageStatsBuilder
impl Unpin for DatasetImageStatsBuilder
impl UnwindSafe for DatasetImageStatsBuilder
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.