gremlin-rs icon indicating copy to clipboard operation
gremlin-rs copied to clipboard

ToPropertyMany Trait

Open jdeepee opened this issue 5 years ago • 2 comments

Outline

  • Implementable on user structs.
  • Should return Vec<(String, GValue)>.
  • Implement properties_from_struct method so following code would work:
g.add_v("label")
    .properties_from_struct(PropertyStructure)
    .next()?;

Purpose

  • Reduce chaining of .property() to just one step property_from_struct

jdeepee avatar Nov 20 '19 18:11 jdeepee

@wolf4ood Please include anything you think should be changed/added.

jdeepee avatar Nov 20 '19 18:11 jdeepee

Ill try to work on this next time I have some spare time

jdeepee avatar Nov 20 '19 19:11 jdeepee