#[non_exhaustive]pub struct ParameterObjectBuilder { /* private fields */ }
Expand description
A builder for ParameterObject
.
Implementations§
source§impl ParameterObjectBuilder
impl ParameterObjectBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the parameter object.
This field is required.sourcepub fn attributes(self, input: ParameterAttribute) -> Self
pub fn attributes(self, input: ParameterAttribute) -> Self
Appends an item to attributes
.
To override the contents of this collection use set_attributes
.
The attributes of the parameter object.
sourcepub fn set_attributes(self, input: Option<Vec<ParameterAttribute>>) -> Self
pub fn set_attributes(self, input: Option<Vec<ParameterAttribute>>) -> Self
The attributes of the parameter object.
sourcepub fn get_attributes(&self) -> &Option<Vec<ParameterAttribute>>
pub fn get_attributes(&self) -> &Option<Vec<ParameterAttribute>>
The attributes of the parameter object.
sourcepub fn build(self) -> Result<ParameterObject, BuildError>
pub fn build(self) -> Result<ParameterObject, BuildError>
Consumes the builder and constructs a ParameterObject
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ParameterObjectBuilder
impl Clone for ParameterObjectBuilder
source§fn clone(&self) -> ParameterObjectBuilder
fn clone(&self) -> ParameterObjectBuilder
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 ParameterObjectBuilder
impl Debug for ParameterObjectBuilder
source§impl Default for ParameterObjectBuilder
impl Default for ParameterObjectBuilder
source§fn default() -> ParameterObjectBuilder
fn default() -> ParameterObjectBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ParameterObjectBuilder
impl PartialEq for ParameterObjectBuilder
source§fn eq(&self, other: &ParameterObjectBuilder) -> bool
fn eq(&self, other: &ParameterObjectBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ParameterObjectBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ParameterObjectBuilder
impl Send for ParameterObjectBuilder
impl Sync for ParameterObjectBuilder
impl Unpin for ParameterObjectBuilder
impl UnwindSafe for ParameterObjectBuilder
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.