Skip to content

Rust struct generator fails on Actor object #514

Answered by obmarg
jman-schief asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jman-schief - thanks for raising this - it looks like a bug (or at the very least an oversight). I've opened #515 to handle it.

I expect you should be able to write the struct for this yourself and have it work, but obviously it's not great if the generator doesn't support it. Something like this:

#[derive(QueryFragment, Debug)]
struct Actor {
   login: String
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jman-schief
Comment options

Answer selected by jman-schief
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants