Skip to content

serde_as with generic types #663

Closed Answered by jonasbb
JosiahParry asked this question in Q&A
Discussion options

You must be logged in to vote

You can specify the generic types on the ArrayVisitor as usual. Something like this:

#[serde_as(as = "Vec<ArrayVisitor<f64, N>>")]

The correct values depend on your SerializeAs trait implementation, that you did not provide here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jonasbb
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