#[non_exhaustive]pub struct AttributeDefinitionBuilder { /* private fields */ }
Expand description
A builder for AttributeDefinition
.
Implementations§
source§impl AttributeDefinitionBuilder
impl AttributeDefinitionBuilder
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
A name for the attribute.
sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
A name for the attribute.
sourcepub fn get_attribute_name(&self) -> &Option<String>
pub fn get_attribute_name(&self) -> &Option<String>
A name for the attribute.
sourcepub fn attribute_type(self, input: ScalarAttributeType) -> Self
pub fn attribute_type(self, input: ScalarAttributeType) -> Self
The data type for the attribute, where:
-
S
- the attribute is of type String -
N
- the attribute is of type Number -
B
- the attribute is of type Binary
sourcepub fn set_attribute_type(self, input: Option<ScalarAttributeType>) -> Self
pub fn set_attribute_type(self, input: Option<ScalarAttributeType>) -> Self
The data type for the attribute, where:
-
S
- the attribute is of type String -
N
- the attribute is of type Number -
B
- the attribute is of type Binary
sourcepub fn get_attribute_type(&self) -> &Option<ScalarAttributeType>
pub fn get_attribute_type(&self) -> &Option<ScalarAttributeType>
The data type for the attribute, where:
-
S
- the attribute is of type String -
N
- the attribute is of type Number -
B
- the attribute is of type Binary
sourcepub fn build(self) -> AttributeDefinition
pub fn build(self) -> AttributeDefinition
Consumes the builder and constructs a AttributeDefinition
.
Trait Implementations§
source§impl Clone for AttributeDefinitionBuilder
impl Clone for AttributeDefinitionBuilder
source§fn clone(&self) -> AttributeDefinitionBuilder
fn clone(&self) -> AttributeDefinitionBuilder
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 AttributeDefinitionBuilder
impl Debug for AttributeDefinitionBuilder
source§impl Default for AttributeDefinitionBuilder
impl Default for AttributeDefinitionBuilder
source§fn default() -> AttributeDefinitionBuilder
fn default() -> AttributeDefinitionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<AttributeDefinitionBuilder> for AttributeDefinitionBuilder
impl PartialEq<AttributeDefinitionBuilder> for AttributeDefinitionBuilder
source§fn eq(&self, other: &AttributeDefinitionBuilder) -> bool
fn eq(&self, other: &AttributeDefinitionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AttributeDefinitionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AttributeDefinitionBuilder
impl Send for AttributeDefinitionBuilder
impl Sync for AttributeDefinitionBuilder
impl Unpin for AttributeDefinitionBuilder
impl UnwindSafe for AttributeDefinitionBuilder
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