Struct ldtk2::FieldInstance[][src]

pub struct FieldInstance {
    pub identifier: String,
    pub field_instance_type: String,
    pub value: Option<Value>,
    pub def_uid: i64,
    pub real_editor_values: Vec<Option<Value>>,
}

Fields

identifier: String

Field definition identifier

field_instance_type: String

Type of the field, such as Int, Float, Enum(my_enum_name), Bool, etc.

value: Option<Value>

Actual value of the field instance. The value type may vary, depending on __type (Integer, Boolean, String etc.)
It can also be an Array of those same types.

def_uid: i64

Reference of the Field definition UID

real_editor_values: Vec<Option<Value>>

Editor internal raw values

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.