#[non_exhaustive]pub struct TopicConstantValueBuilder { /* private fields */ }
Expand description
A builder for TopicConstantValue
.
Implementations§
source§impl TopicConstantValueBuilder
impl TopicConstantValueBuilder
sourcepub fn constant_type(self, input: ConstantType) -> Self
pub fn constant_type(self, input: ConstantType) -> Self
The constant type of a TopicConstantValue
.
sourcepub fn set_constant_type(self, input: Option<ConstantType>) -> Self
pub fn set_constant_type(self, input: Option<ConstantType>) -> Self
The constant type of a TopicConstantValue
.
sourcepub fn get_constant_type(&self) -> &Option<ConstantType>
pub fn get_constant_type(&self) -> &Option<ConstantType>
The constant type of a TopicConstantValue
.
sourcepub fn set_minimum(self, input: Option<String>) -> Self
pub fn set_minimum(self, input: Option<String>) -> Self
The minimum for the TopicConstantValue
.
sourcepub fn get_minimum(&self) -> &Option<String>
pub fn get_minimum(&self) -> &Option<String>
The minimum for the TopicConstantValue
.
sourcepub fn set_maximum(self, input: Option<String>) -> Self
pub fn set_maximum(self, input: Option<String>) -> Self
The maximum for the TopicConstantValue
.
sourcepub fn get_maximum(&self) -> &Option<String>
pub fn get_maximum(&self) -> &Option<String>
The maximum for the TopicConstantValue
.
sourcepub fn value_list(self, input: CollectiveConstantEntry) -> Self
pub fn value_list(self, input: CollectiveConstantEntry) -> Self
Appends an item to value_list
.
To override the contents of this collection use set_value_list
.
The value list of the TopicConstantValue
.
sourcepub fn set_value_list(self, input: Option<Vec<CollectiveConstantEntry>>) -> Self
pub fn set_value_list(self, input: Option<Vec<CollectiveConstantEntry>>) -> Self
The value list of the TopicConstantValue
.
sourcepub fn get_value_list(&self) -> &Option<Vec<CollectiveConstantEntry>>
pub fn get_value_list(&self) -> &Option<Vec<CollectiveConstantEntry>>
The value list of the TopicConstantValue
.
sourcepub fn build(self) -> TopicConstantValue
pub fn build(self) -> TopicConstantValue
Consumes the builder and constructs a TopicConstantValue
.
Trait Implementations§
source§impl Clone for TopicConstantValueBuilder
impl Clone for TopicConstantValueBuilder
source§fn clone(&self) -> TopicConstantValueBuilder
fn clone(&self) -> TopicConstantValueBuilder
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 TopicConstantValueBuilder
impl Debug for TopicConstantValueBuilder
source§impl Default for TopicConstantValueBuilder
impl Default for TopicConstantValueBuilder
source§fn default() -> TopicConstantValueBuilder
fn default() -> TopicConstantValueBuilder
Returns the “default value” for a type. Read more
impl StructuralPartialEq for TopicConstantValueBuilder
Auto Trait Implementations§
impl Freeze for TopicConstantValueBuilder
impl RefUnwindSafe for TopicConstantValueBuilder
impl Send for TopicConstantValueBuilder
impl Sync for TopicConstantValueBuilder
impl Unpin for TopicConstantValueBuilder
impl UnwindSafe for TopicConstantValueBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
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.