gremlin-rs
gremlin-rs copied to clipboard
ToPropertyMany Trait
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 stepproperty_from_struct
@wolf4ood Please include anything you think should be changed/added.
Ill try to work on this next time I have some spare time