Skip to main content
Rust4PM

Annotations_for_PetriNodeRef

The JSON form of Annotations.
Used as Input

0

functions accept this type(+5 nested)

Used as Output

0

functions return this type

Type Definition

32 nested items
struct— The JSON form of Annotations.
edges*:Vec<((PetriNodeRef, PetriNodeRef), EdgeAnnotation)>— By edge.
nodes*:Vec<(PetriNodeRef, NodeAnnotation)>— By node, as one more line in the node.

Example JSON Value

json
{
  "edges": [
    [
      [
        {
          "index": 1,
          "kind": "place"
        },
        {
          "index": 1,
          "kind": "place"
        }
      ],
      {}
    ]
  ],
  "nodes": [
    [
      {
        "index": 1,
        "kind": "place"
      },
      {}
    ]
  ]
}