#[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 ==
.