Struct ply_rs::ply::PropertyDef
[−]
[src]
pub struct PropertyDef { pub name: String, pub data_type: PropertyType, }
Defines a property of an element.
Fields
name: String
Unique name of property.
The name should be unique for each property of the same element.
data_type: PropertyType
Data type of the property: You can have simple scalars (ints, floats, etc.) or lists of scalars. In the case of lists you need to decide in which type you want to store the list length and what type to use for the list elemetns.
Methods
impl PropertyDef
[src]
fn new(name: String, data_type: PropertyType) -> Self
[src]
Creates a new property definition.
Trait Implementations
impl Key for PropertyDef
[src]
fn get_key(&self) -> String
[src]
Returns a key under which the element should be stored in a key-value store.
impl Debug for PropertyDef
[src]
impl PartialEq for PropertyDef
[src]
fn eq(&self, __arg_0: &PropertyDef) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PropertyDef) -> bool
[src]
This method tests for !=
.
impl Eq for PropertyDef
[src]
impl Clone for PropertyDef
[src]
fn clone(&self) -> PropertyDef
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more