Struct ply_rs::ply::PropertyDef [] [src]

pub struct PropertyDef {
    pub name: String,
    pub data_type: PropertyType,
}

Defines a property of an element.

Fields

Unique name of property.

The name should be unique for each property of the same element.

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]

[src]

Creates a new property definition.

Trait Implementations

impl Key for PropertyDef
[src]

[src]

Returns a key under which the element should be stored in a key-value store.

impl Debug for PropertyDef
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for PropertyDef
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for PropertyDef
[src]

impl Clone for PropertyDef
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more