pub struct AttributeDef {
pub defindex: u32,
pub name: &'static str,
pub attribute_class: Option<&'static str>,
pub description_string: Option<&'static str>,
pub description_format: Option<DescriptionFormat>,
pub effect_type: EffectType,
pub hidden: bool,
pub stored_as_integer: bool,
}
Expand description
Represents the definition of an attribute in the schema.
Fields§
§defindex: u32
The unique identifier for the attribute.
name: &'static str
The name of the attribute.
attribute_class: Option<&'static str>
The attribute class of the attribute.
description_string: Option<&'static str>
The description string of the attribute.
description_format: Option<DescriptionFormat>
The description format of the attribute.
effect_type: EffectType
The effect type of the description.
Indicates whether the description is hidden from display.
stored_as_integer: bool
Indicates whether the attribute’s value is stored as an integer.
Implementations§
Source§impl AttributeDef
impl AttributeDef
Trait Implementations§
Source§impl Clone for AttributeDef
impl Clone for AttributeDef
Source§fn clone(&self) -> AttributeDef
fn clone(&self) -> AttributeDef
Returns a duplicate 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 AttributeDef
impl Debug for AttributeDef
Source§impl Hash for AttributeDef
impl Hash for AttributeDef
Source§impl PartialEq for AttributeDef
impl PartialEq for AttributeDef
impl Copy for AttributeDef
impl Eq for AttributeDef
impl StructuralPartialEq for AttributeDef
Auto Trait Implementations§
impl Freeze for AttributeDef
impl RefUnwindSafe for AttributeDef
impl Send for AttributeDef
impl Sync for AttributeDef
impl Unpin for AttributeDef
impl UnwindSafe for AttributeDef
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