1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
// SPDX-License-Identifier: Apache-2.0
//! Parametric-design entities and their links to the solved B-rep.
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;
use crate::attributes::AttributeTarget;
use crate::ids::CoedgeId;
use crate::math::{Point2, Point3, Vector3};
/// Provenance link from a solved B-rep coedge to its source sketch curve.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct SketchCurveLink {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Solved B-rep coedge this link provenances back to a sketch curve.
pub coedge: CoedgeId,
/// Numeric design-entity id of the source sketch-curve record.
pub sketch_curve_id: i64,
/// Signed variant of `sketch_curve_id` carrying orientation of the sketch curve
/// relative to the coedge, when the source record encoded one.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub signed_reference: Option<i64>,
/// Source role tag distinguishing how the sketch curve participates in the link
/// (e.g. profile edge vs. construction reference).
pub role: i64,
/// Source closure/continuity tag of the sketch curve at this link.
pub closure: i64,
}
/// Persistent Fusion design identifier attached to a solved B-rep entity.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct PersistentDesignLink {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Solved B-rep entity this persistent Fusion design id is attached to.
pub target: AttributeTarget,
/// Fusion persistent design-entity id string, stable across regeneration.
pub design_id: String,
/// Position of this id in the entity's persistent-id history, in assignment order.
pub ordinal: u32,
/// Whether this is the active persistent id for `target`, as opposed to a
/// superseded historical id retained for provenance.
pub is_current: bool,
}
/// Design `BulkStream` regeneration-recipe family.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum ConstructionRecipeKind {
/// Recipe regenerates a whole body.
Body,
/// Recipe regenerates a single face.
Face,
/// Recipe regenerates a face bounded by an explicit region.
BoundedFace,
/// Recipe regenerates a single edge.
Edge,
/// Recipe regenerates a single vertex.
Vertex,
}
/// One source-framed parametric regeneration recipe.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct ConstructionRecipe {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Byte offset of this recipe's family marker in its Design `BulkStream`.
pub byte_offset: u64,
/// Byte offset of `record_index` in the Design `BulkStream`, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub record_index_offset: Option<u64>,
/// Topology kind this recipe regenerates on replay.
pub kind: ConstructionRecipeKind,
/// Design entity id of the body this recipe is keyed to, if the source record
/// carried a `generic_tag_attrib_def` construction id; `None` for body-less recipes.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub design_id: Option<String>,
/// Byte offset of `design_id` in the Design `BulkStream`, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub design_id_offset: Option<u64>,
/// Whether `design_id` is stored as a binary little-endian u32 rather than ASCII.
#[serde(default)]
pub design_id_binary_u32: bool,
/// Position of this recipe in the `BulkStream` recipe sequence, in source order.
pub recipe_index: u32,
/// Source `BulkStream` record index this recipe was decoded from.
pub record_index: i32,
}
/// Persistent-reference channel in the Design construction stream.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum PersistentReferenceKind {
/// Reference identifies a persistent point.
Point,
/// Reference identifies the primary id of a persistent curve.
CurvePrimary,
/// Reference identifies the secondary id of a persistent curve.
CurveSecondary,
}
/// One byte-stored persistent point or curve identifier.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct PersistentReference {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Byte offset of the persistent-reference field name in its Design `BulkStream`.
pub byte_offset: u64,
/// Byte offset of the u64 value relative to `byte_offset`.
pub value_offset: u32,
/// Whether this reference identifies a persistent point or one end of a curve.
pub kind: PersistentReferenceKind,
/// Raw persistent point/curve identifier as stored in the `Design` construction stream.
pub value: u64,
}
/// A construction-history edge selection that Fusion could not re-resolve.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct LostEdgeReference {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Byte offset of the `EDGE_REFERENCE_LOST` marker in its Design `BulkStream`.
pub byte_offset: u64,
/// Byte offset of the three-byte class tag.
pub class_tag_offset: u64,
/// Source per-file dynamic three-digit ASCII class tag of the unresolved record.
pub class_tag: String,
/// Source `BulkStream` record index of the unresolved edge selection.
pub record_index: u32,
/// Byte offset of `record_index`.
pub record_index_offset: u64,
}
/// One Design `BulkStream` material assignment joining a design entity to visual assets.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct DesignMaterialAssignment {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// ASM body key resolved through the Design body map.
pub asm_body_key: u64,
/// Numeric suffix of `entity_id`.
pub entity_suffix: u64,
/// Byte offset of the body-map entity suffix.
pub entity_suffix_offset: u64,
/// UTF-16 design-entity id.
pub entity_id: String,
/// Byte offset of the UTF-16 entity-id code units.
pub entity_id_offset: u64,
/// Visual asset GUID.
pub visual_guid: String,
/// Byte offset of the UTF-16 visual-GUID code units.
pub visual_guid_offset: u64,
/// Physical-material token, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub physical_token: Option<String>,
/// Byte offset of the UTF-16 physical token, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub physical_token_offset: Option<u64>,
/// Visual preset name, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub visual_preset: Option<String>,
/// Byte offset of the UTF-16 preset name, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub visual_preset_offset: Option<u64>,
}
/// Design `MetaStream` object class.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum DesignObjectKind {
/// Root Fusion document object.
Fusion,
/// A design body object.
Body,
/// A design component object.
Component,
/// A geometry-bearing object (points, curves, surfaces).
Geometry,
/// A sketch container object.
Sketch,
/// A parametric dimension/constraint object.
Dimension,
/// A scene/view object.
Scene,
/// An entity-tracking bookkeeping object.
EntityTracking,
/// A shared common-data object referenced by other object kinds.
CommonData,
}
/// One GUID-owned object-table record from the Design `MetaStream`.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct DesignObject {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Byte offset of this object record in its Design `MetaStream`.
pub byte_offset: u64,
/// ASCII type name of this `MetaStream` object record.
pub kind: DesignObjectKind,
/// Design-entity ids owned by this object, in source `MetaStream` order; a count
/// rather than a fixed-arity id list, so length varies per record.
pub entity_ids: Vec<u64>,
/// Byte offsets parallel to `entity_ids`.
pub entity_id_offsets: Vec<u64>,
/// This object's own GUID.
pub self_guid: String,
/// Byte offset of the self-GUID bytes in the Design `MetaStream`.
pub self_guid_offset: u64,
/// GUID of the owning object, when the source record carried a secondary GUID
/// after the zero-run delimiter; `None` for root-level objects.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub parent_guid: Option<String>,
/// Byte offset of the parent-GUID bytes, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub parent_guid_offset: Option<u64>,
/// Trailing record-revision counter from the `MetaStream` record.
pub revision: u32,
/// Byte offset of `revision` in the Design `MetaStream`.
pub revision_offset: u64,
}
/// Self-validating entity-bound header in the Design `BulkStream`.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct DesignEntityHeader {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Byte offset of this entity header in its Design `BulkStream`.
pub byte_offset: u64,
/// Numeric suffix of the owning design-entity id (e.g. the `N` in `Body:N`).
pub entity_suffix: u64,
/// Full UTF-16LE-decoded design-entity id string for this header.
pub entity_id: String,
/// Source per-file dynamic three-digit ASCII class tag naming this header's record type.
pub class_tag: String,
/// Whether the flag-selected four-byte optional slot is present.
pub optional_slot_present: bool,
/// `MetaStream` object kind this header cross-references, when `optional_slot_present`
/// resolved to a known `DesignObjectKind`.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub object_kind: Option<DesignObjectKind>,
/// Index of an associated `BulkStream` record, when the header carries one.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub record_reference: Option<u32>,
/// Byte offset of `record_reference` in the Design `BulkStream`, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub record_reference_offset: Option<u64>,
/// Declared count of reference entries the header claims to own, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub declared_reference_count: Option<u32>,
/// Padded record-reference run owned by a sketch entity container.
#[serde(default)]
pub reference_indices: Vec<u32>,
/// Byte offsets parallel to `reference_indices`.
#[serde(default)]
pub reference_offsets: Vec<u64>,
}
/// One indexed record header in the recursive Design `BulkStream` tree.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct DesignRecordHeader {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Index of this record within the recursive `BulkStream` tree.
pub record_index: u32,
/// Source per-file dynamic three-digit ASCII class tag naming this record's type.
pub class_tag: String,
/// Byte offset of this header within its Design `BulkStream`.
pub byte_offset: u64,
}
/// Counted constraint relation owned by a sketch container.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct SketchRelation {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Index of this relation record within the `BulkStream` tree.
pub record_index: u32,
/// Source per-file dynamic three-digit ASCII class tag naming this relation's type.
pub class_tag: String,
/// Byte offset of this record within its Design `BulkStream`.
pub byte_offset: u64,
/// Byte offset of the constraint mask relative to the record start.
pub state_offset: u32,
/// Record index of the sketch entity container that owns this relation.
pub owner_reference: u32,
/// Nullable or role-specific references stored before the owner reference.
#[serde(default)]
pub auxiliary_references: Vec<u32>,
/// Record indices of the entities related by this relation.
pub members: Vec<u32>,
/// Source sketch-constraint bitmask.
pub state: u32,
/// Constraint kinds selected by `state`.
#[serde(default)]
pub constraint_kinds: Vec<SketchConstraintKind>,
/// Bits in `state` outside the defined constraint mask.
pub unknown_constraint_bits: u32,
/// Record indices of entities returned or affected by this relation, distinct
/// from `members`.
pub return_members: Vec<u32>,
/// Complete 101-byte source record for native replay/write.
#[serde(with = "crate::bytes")]
#[schemars(with = "String")]
pub raw_bytes: Vec<u8>,
}
/// One bit in a Fusion sketch-constraint state mask.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
#[serde(rename_all = "snake_case")]
pub enum SketchConstraintKind {
/// Points or endpoints occupy the same position.
Coincident,
/// Two line-bearing entities lie on one infinite line.
Colinear,
/// Circular entities share a center.
Concentric,
/// Line-bearing entities have parallel directions.
Parallel,
/// Line-bearing entities meet at a right angle.
Perpendicular,
/// An entity is horizontal in sketch coordinates.
Horizontal,
/// An entity is vertical in sketch coordinates.
Vertical,
/// Two entities share a tangent direction at contact.
Tangent,
/// Two entities share curvature at contact.
Curvature,
/// Entities are symmetric about an axis.
Symmetry,
/// Entities have equal size.
Equal,
/// A point lies at an entity midpoint.
Midpoint,
/// Entities participate in a polygon relation.
Polygon,
/// Entities participate in a circular pattern.
CircularPattern,
/// Entities participate in a rectangular pattern.
RectangularPattern,
}
/// One persistent 2D point in a Fusion sketch coordinate system.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct SketchPoint {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Index of this point record within the `BulkStream` tree.
pub record_index: u32,
/// Source per-file dynamic three-digit ASCII class tag naming this point's record type.
pub class_tag: String,
/// Byte offset of this record within its Design `BulkStream`.
pub byte_offset: u64,
/// Byte offset of the first coordinate relative to the record start.
pub coordinate_offset: u32,
/// Persistent Fusion identifier for this sketch point, stable across regeneration.
pub persistent_id: u64,
/// Record index of a paired/companion record (e.g. the owning sketch curve),
/// when the source record carried one.
pub paired_reference: u32,
/// Sketch coordinates in millimetres.
pub coordinates: Point2,
/// Complete source record bytes for native replay and rewrite.
#[serde(with = "crate::bytes")]
#[schemars(with = "String")]
pub raw_bytes: Vec<u8>,
}
/// Persistent identity pair attached to one source sketch-curve record.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct SketchCurveIdentity {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Index of this identity record within the `BulkStream` tree.
pub record_index: u32,
/// Source per-file dynamic three-digit ASCII class tag naming this record's type.
pub class_tag: String,
/// Byte offset of this record within its Design `BulkStream`.
pub byte_offset: u64,
/// Byte offset of the fixed analytic geometry payload relative to the record start.
pub geometry_offset: u32,
/// Primary persistent identifier of the source sketch curve.
pub primary_id: u64,
/// Secondary persistent identifier of the source sketch curve (e.g. its
/// complementary endpoint or paired-curve identity).
pub secondary_id: u64,
/// Exact analytic geometry carried by this sketch-curve record, when the
/// decoder recovered one; `None` when the geometry subtype was not decoded.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub geometry: Option<SketchCurveGeometry>,
}
/// Exact analytic geometry carried by a source sketch-curve record.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
#[serde(tag = "kind", rename_all = "snake_case")]
pub enum SketchCurveGeometry {
/// A straight line segment.
Line {
/// Start point in sketch space, millimetres.
start: Point3,
/// End point in sketch space, millimetres.
end: Point3,
/// Unit direction vector from `start` to `end`.
direction: Vector3,
/// Unit normal of the sketch plane the line lies in.
normal: Vector3,
},
/// A circular arc.
Arc {
/// Arc center in sketch space, millimetres.
center: Point3,
/// Unit normal of the sketch plane the arc lies in.
normal: Vector3,
/// Unit vector marking the zero-angle direction for `start_angle`/`end_angle`.
reference_direction: Vector3,
/// Arc radius in millimetres.
radius: f64,
/// Start angle in radians, measured from `reference_direction`.
start_angle: f64,
/// End angle in radians, measured from `reference_direction`.
end_angle: f64,
},
/// A NURBS (procedural spline) curve.
Nurbs {
/// Record index of the underlying carrier geometry, when the NURBS record
/// references one; `None` when the control data is self-contained.
#[serde(default, skip_serializing_if = "Option::is_none")]
carrier_reference: Option<u64>,
/// Source per-file dynamic three-digit ASCII class tag naming the NURBS subtype.
subtype_class_tag: String,
/// Record index of the NURBS subtype record.
subtype_record_index: u32,
/// Polynomial degree of the curve.
degree: u32,
/// Source fit tolerance used when the curve was fitted, in millimetres.
fit_tolerance: f64,
/// Width in scalars of each control-point record as stored in the source
/// (control point components plus weight, before decoding into `control_points`/`weights`).
scalar_width: u32,
/// Knot vector, non-decreasing, length `control_points.len() + degree + 1`.
knots: Vec<f64>,
/// Per-control-point rational weights, parallel to `control_points`.
weights: Vec<f64>,
/// Control points in sketch space, millimetres, parallel to `weights`.
control_points: Vec<Point3>,
},
}
/// One member of the Design `BulkStream` `BodiesRoot` list.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct DesignBodyMember {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Byte offset of this member's leading presence byte in its Design `BulkStream`.
pub byte_offset: u64,
/// Numeric suffix of this body's design-entity id.
pub entity_suffix: u64,
/// Source per-member flag word from the `BodiesRoot` list entry.
pub flags: u16,
}
/// One entity in the Fusion ACT change-tracking table.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct ActEntity {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Index of this entity's `ACTTable` entry within the ACT `BulkStream`.
pub record_index: u32,
/// Byte offset of the table-entry record index, when this entity is in `ACTTable`.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub table_record_index_offset: Option<u64>,
/// Byte offset of the channel-group record index, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub channel_record_index_offset: Option<u64>,
/// UTF-16LE-decoded design-entity id this table entry tracks.
pub entity_id: String,
/// Byte offset of the table-entry UTF-16 entity-id code units, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub table_entity_id_offset: Option<u64>,
/// Byte offset of the channel-group UTF-16 entity-id code units, when present.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub channel_entity_id_offset: Option<u64>,
/// Whether this entity is currently present in the `ACTTable`, as opposed to
/// referenced only by a channel-group record.
pub in_table: bool,
/// Source per-file dynamic three-digit ASCII class tag of this entity's channel-group
/// record, when it owns one; `None` for table-only entries.
#[serde(default, skip_serializing_if = "Option::is_none")]
pub channel_class_tag: Option<String>,
/// Named channel/GUID pairs from this entity's channel-group record; each GUID is a
/// change-version handle, not a visibility or suppression flag.
#[serde(default)]
pub channels: BTreeMap<String, String>,
/// Byte offsets of UTF-16 GUID code units, keyed parallel to `channels`.
#[serde(default)]
pub channel_guid_offsets: BTreeMap<String, u64>,
}
/// One GUID in the ordered ACT stream-wide asset/change-version pool.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct ActGuid {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Byte offset of this GUID's UTF-16 length prefix in the ACT `BulkStream`.
pub byte_offset: u64,
/// Byte offset of the UTF-16 GUID code units in the ACT `BulkStream`.
pub guid_offset: u64,
/// Position of this GUID in the pool, in source stream order; pool position does
/// not assign one GUID to a single `ACTTable` entry.
pub ordinal: u32,
/// The pooled GUID string.
pub guid: String,
}
/// ACT link from the document root entity to the instance/component registries.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema)]
pub struct ActRootComponent {
/// Globally unique deterministic identifier for this native record.
pub id: String,
/// Byte offset of this record in the ACT `BulkStream`.
pub byte_offset: u64,
/// Index of this record within the ACT `BulkStream`.
pub record_index: u32,
/// Byte offset of `record_index`.
pub record_index_offset: u64,
/// Source per-file dynamic three-digit ASCII class tag naming this record's type.
pub class_tag: String,
/// Record index of the instance registry root.
pub instance_root_record: u32,
/// Byte offset of `instance_root_record`.
pub instance_root_record_offset: u64,
/// Record index of the components registry root.
pub components_root_record: u32,
/// Byte offset of `components_root_record`.
pub components_root_record_offset: u64,
/// Source counter/registry flag; 0 and 1 are both valid.
pub registry_flag: u32,
/// Byte offset of `registry_flag`.
pub registry_flag_offset: u64,
/// UTF-16LE-decoded design-entity id of the document root entity.
pub entity_id: String,
/// Byte offset of the UTF-16 `entity_id` code units.
pub entity_id_offset: u64,
/// Document display name as stored alongside this root-component link.
pub display_name: String,
/// Byte offset of the UTF-16 `display_name` code units.
pub display_name_offset: u64,
}