pub struct AttributeDefinition {
pub group: Option<String>,
pub name: String,
pub value_type: ValueType,
pub cardinality: Cardinality,
pub unique: Option<Unique>,
pub indexed: bool,
pub component: bool,
pub no_history: bool,
}Expand description
One normalized attribute declaration, independent of its source syntax.
Fields§
§group: Option<String>Optional authoring group, mapped to the keyword namespace.
name: StringAttribute name within its group, or its complete unnamespaced name.
value_type: ValueTypeStored value type.
cardinality: CardinalityWhether entities may hold one or many values for the attribute.
unique: Option<Unique>Optional uniqueness behavior.
indexed: boolWhether the attribute requests AVET coverage.
component: boolWhether a reference is a component of its parent.
no_history: boolWhether history storage is disabled for the attribute.
Implementations§
Trait Implementations§
Source§impl Clone for AttributeDefinition
impl Clone for AttributeDefinition
Source§fn clone(&self) -> AttributeDefinition
fn clone(&self) -> AttributeDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributeDefinition
impl Debug for AttributeDefinition
impl Eq for AttributeDefinition
Source§impl PartialEq for AttributeDefinition
impl PartialEq for AttributeDefinition
impl StructuralPartialEq for AttributeDefinition
Auto Trait Implementations§
impl Freeze for AttributeDefinition
impl RefUnwindSafe for AttributeDefinition
impl Send for AttributeDefinition
impl Sync for AttributeDefinition
impl Unpin for AttributeDefinition
impl UnsafeUnpin for AttributeDefinition
impl UnwindSafe for AttributeDefinition
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