#[non_exhaustive]pub struct CollectionConfigurationBuilder { /* private fields */ }
Expand description
A builder for CollectionConfiguration
.
Implementations§
source§impl CollectionConfigurationBuilder
impl CollectionConfigurationBuilder
sourcepub fn collection_name(self, input: impl Into<String>) -> Self
pub fn collection_name(self, input: impl Into<String>) -> Self
The name of the tensor collection. The name must be unique relative to other rule configuration names.
sourcepub fn set_collection_name(self, input: Option<String>) -> Self
pub fn set_collection_name(self, input: Option<String>) -> Self
The name of the tensor collection. The name must be unique relative to other rule configuration names.
sourcepub fn get_collection_name(&self) -> &Option<String>
pub fn get_collection_name(&self) -> &Option<String>
The name of the tensor collection. The name must be unique relative to other rule configuration names.
sourcepub fn collection_parameters(
self,
k: impl Into<String>,
v: impl Into<String>,
) -> Self
pub fn collection_parameters( self, k: impl Into<String>, v: impl Into<String>, ) -> Self
Adds a key-value pair to collection_parameters
.
To override the contents of this collection use set_collection_parameters
.
Parameter values for the tensor collection. The allowed parameters are "name"
, "include_regex"
, "reduction_config"
, "save_config"
, "tensor_names"
, and "save_histogram"
.
sourcepub fn set_collection_parameters(
self,
input: Option<HashMap<String, String>>,
) -> Self
pub fn set_collection_parameters( self, input: Option<HashMap<String, String>>, ) -> Self
Parameter values for the tensor collection. The allowed parameters are "name"
, "include_regex"
, "reduction_config"
, "save_config"
, "tensor_names"
, and "save_histogram"
.
sourcepub fn get_collection_parameters(&self) -> &Option<HashMap<String, String>>
pub fn get_collection_parameters(&self) -> &Option<HashMap<String, String>>
Parameter values for the tensor collection. The allowed parameters are "name"
, "include_regex"
, "reduction_config"
, "save_config"
, "tensor_names"
, and "save_histogram"
.
sourcepub fn build(self) -> CollectionConfiguration
pub fn build(self) -> CollectionConfiguration
Consumes the builder and constructs a CollectionConfiguration
.
Trait Implementations§
source§impl Clone for CollectionConfigurationBuilder
impl Clone for CollectionConfigurationBuilder
source§fn clone(&self) -> CollectionConfigurationBuilder
fn clone(&self) -> CollectionConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CollectionConfigurationBuilder
impl Default for CollectionConfigurationBuilder
source§fn default() -> CollectionConfigurationBuilder
fn default() -> CollectionConfigurationBuilder
source§impl PartialEq for CollectionConfigurationBuilder
impl PartialEq for CollectionConfigurationBuilder
source§fn eq(&self, other: &CollectionConfigurationBuilder) -> bool
fn eq(&self, other: &CollectionConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CollectionConfigurationBuilder
Auto Trait Implementations§
impl Freeze for CollectionConfigurationBuilder
impl RefUnwindSafe for CollectionConfigurationBuilder
impl Send for CollectionConfigurationBuilder
impl Sync for CollectionConfigurationBuilder
impl Unpin for CollectionConfigurationBuilder
impl UnwindSafe for CollectionConfigurationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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