Skip to main content
Rust4PM

JsonArc

An arc from a place to a transition or the other way round.
Used as Input

0

functions accept this type(+5 nested)

Used as Output

0

functions return this type(+1 nested)

Type Definition

6 nested items
struct— An arc from a place to a transition or the other way round.
source*:String— Name of the place or transition the arc leaves.
target*:String— Name of the place or transition the arc enters.
type:JsonArcType— Whether an arc moves a single object or all of them at once.
variant 1:"normal"— Moves one object of the place's type.
variant 2:"variable"— Moves a set of objects of the place's type at once.
weight:u32— How many tokens the arc moves.

Example JSON Value

json
{
  "source": "example",
  "target": "example"
}