#[non_exhaustive]pub struct ClassificationBuilder { /* private fields */ }Expand description
A builder for Classification.
Implementations§
Source§impl ClassificationBuilder
impl ClassificationBuilder
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the configuration classification.
Sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the configuration classification.
Sourcepub fn properties(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn properties(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to properties.
To override the contents of this collection use set_properties.
A set of properties specified within a configuration classification.
Sourcepub fn set_properties(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_properties(self, input: Option<HashMap<String, String>>) -> Self
A set of properties specified within a configuration classification.
Sourcepub fn get_properties(&self) -> &Option<HashMap<String, String>>
pub fn get_properties(&self) -> &Option<HashMap<String, String>>
A set of properties specified within a configuration classification.
Sourcepub fn build(self) -> Classification
pub fn build(self) -> Classification
Consumes the builder and constructs a Classification.
Trait Implementations§
Source§impl Clone for ClassificationBuilder
impl Clone for ClassificationBuilder
Source§fn clone(&self) -> ClassificationBuilder
fn clone(&self) -> ClassificationBuilder
Returns a duplicate 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 ClassificationBuilder
impl Debug for ClassificationBuilder
Source§impl Default for ClassificationBuilder
impl Default for ClassificationBuilder
Source§fn default() -> ClassificationBuilder
fn default() -> ClassificationBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClassificationBuilder
impl PartialEq for ClassificationBuilder
impl StructuralPartialEq for ClassificationBuilder
Auto Trait Implementations§
impl Freeze for ClassificationBuilder
impl RefUnwindSafe for ClassificationBuilder
impl Send for ClassificationBuilder
impl Sync for ClassificationBuilder
impl Unpin for ClassificationBuilder
impl UnsafeUnpin for ClassificationBuilder
impl UnwindSafe for ClassificationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.