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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for FieldInstance
impl Send for FieldInstance
impl Sync for FieldInstance
impl Unpin for FieldInstance
impl UnwindSafe for FieldInstance
Blanket Implementations
Mutably borrows from an owned value. Read more