#[non_exhaustive]pub struct AttributeDetailsBuilder { /* private fields */ }
Expand description
A builder for AttributeDetails
.
Implementations§
source§impl AttributeDetailsBuilder
impl AttributeDetailsBuilder
sourcepub fn attributes(self, input: AttributeItem) -> Self
pub fn attributes(self, input: AttributeItem) -> Self
Appends an item to attributes
.
To override the contents of this collection use set_attributes
.
A list of attribute items specified in the mathematical expression.
sourcepub fn set_attributes(self, input: Option<Vec<AttributeItem>>) -> Self
pub fn set_attributes(self, input: Option<Vec<AttributeItem>>) -> Self
A list of attribute items specified in the mathematical expression.
sourcepub fn get_attributes(&self) -> &Option<Vec<AttributeItem>>
pub fn get_attributes(&self) -> &Option<Vec<AttributeItem>>
A list of attribute items specified in the mathematical expression.
sourcepub fn expression(self, input: impl Into<String>) -> Self
pub fn expression(self, input: impl Into<String>) -> Self
Mathematical expression that is performed on attribute items provided in the attribute list. Each element in the expression should follow the structure of \"{ObjectTypeName.AttributeName}\".
This field is required.sourcepub fn set_expression(self, input: Option<String>) -> Self
pub fn set_expression(self, input: Option<String>) -> Self
Mathematical expression that is performed on attribute items provided in the attribute list. Each element in the expression should follow the structure of \"{ObjectTypeName.AttributeName}\".
sourcepub fn get_expression(&self) -> &Option<String>
pub fn get_expression(&self) -> &Option<String>
Mathematical expression that is performed on attribute items provided in the attribute list. Each element in the expression should follow the structure of \"{ObjectTypeName.AttributeName}\".
sourcepub fn build(self) -> Result<AttributeDetails, BuildError>
pub fn build(self) -> Result<AttributeDetails, BuildError>
Consumes the builder and constructs a AttributeDetails
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AttributeDetailsBuilder
impl Clone for AttributeDetailsBuilder
source§fn clone(&self) -> AttributeDetailsBuilder
fn clone(&self) -> AttributeDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttributeDetailsBuilder
impl Debug for AttributeDetailsBuilder
source§impl Default for AttributeDetailsBuilder
impl Default for AttributeDetailsBuilder
source§fn default() -> AttributeDetailsBuilder
fn default() -> AttributeDetailsBuilder
source§impl PartialEq for AttributeDetailsBuilder
impl PartialEq for AttributeDetailsBuilder
source§fn eq(&self, other: &AttributeDetailsBuilder) -> bool
fn eq(&self, other: &AttributeDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AttributeDetailsBuilder
Auto Trait Implementations§
impl Freeze for AttributeDetailsBuilder
impl RefUnwindSafe for AttributeDetailsBuilder
impl Send for AttributeDetailsBuilder
impl Sync for AttributeDetailsBuilder
impl Unpin for AttributeDetailsBuilder
impl UnwindSafe for AttributeDetailsBuilder
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> 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