Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToPropertyMany Trait #49

Open
jdeepee opened this issue Nov 20, 2019 · 2 comments
Open

ToPropertyMany Trait #49

jdeepee opened this issue Nov 20, 2019 · 2 comments

Comments

@jdeepee
Copy link
Contributor

jdeepee commented Nov 20, 2019

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
Copy link
Contributor Author

jdeepee commented Nov 20, 2019

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

@jdeepee
Copy link
Contributor Author

jdeepee commented Nov 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant