fix: path to the ObjectInstance struct
parent
bce2cc3181
commit
f88fd885f1
2 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
> you're probably looking for
|
||||
|
||||
an object template is a [toml](https://toml.io) blueprint of an `wgu::ObjectInstance`. it is exported from modules as a `&'static str`.
|
||||
an object template is a [toml](https://toml.io) blueprint of an `wgu::types::ObjectInstance`. it is exported from modules as a `&'static str`.
|
||||
|
||||
for referencing templates, the name of the module and the name of the template are used, separated by a `/` (slash) symbol: `{object_type}`
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# objects
|
||||
|
||||
**the main unit of organization within the modular object format is the object instance.** an object instance (`wgu::ObjectInstance`, stored & transmitted as a [json object literal](https://benalman.com/news/2010/03/theres-no-such-thing-as-a-json/)) is a data structure representing a piece of computer data of a specified type.
|
||||
**the main unit of organization within the modular object format is the object instance.** an object instance (`wgu::types::ObjectInstance`, stored & transmitted as a [json object literal](https://benalman.com/news/2010/03/theres-no-such-thing-as-a-json/)) is a data structure representing a piece of computer data of a specified type.
|
||||
|
||||
core object data is categorized into three categories, `input`, `local`, `remote`. the structure of these categories depends on the object instance's `object_type`. due to this, within wgu, those categories are stored as *json object strings* in the corresponding columns of the `objects` sqlite table. object metadata (`variant`, `object_type`, timestamps, hashes, etc.) are stored alongside these categories.
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ similarly to [transforms](#transforms), subobjects are defined in the [template
|
|||
|
||||
## templates
|
||||
|
||||
**an object template ([`wgu::modules::ModuleItem::Template`](modularity.md#moduleitem-template) is a [toml](https://toml.io) blueprint of an `wgu::ObjectInstance`.** templates are used to configure how object instances behave.
|
||||
**an object template ([`wgu::modules::ModuleItem::Template`](modularity.md#moduleitem-template) is a [toml](https://toml.io) blueprint of an `wgu::types::ObjectInstance`.** templates are used to configure how object instances behave.
|
||||
|
||||
for referencing templates, the name of the module and the name of the template are used, separated by a `/` (slash) symbol.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue