iv class="comment-content">This is invalid syntax, to construct a struct with this syntax the field needs a label like TakeStepAction { step: path[0] } alternatively TakeStepAction could be a tuple struct and be constructed using TakeStepAction(path[0]). It&#39;d probably be most idiomatic to use a function: TakeStepAction::new(path[0])</div></div><div class="reply-list"><div id="AAAATTv0iSE" class="reply-box"><div class="author-picture"><img src="https://lh3.googleusercontent.com/a-/AOh14GjoOXwuji1Q0p6FX0I