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

Is it possible to add context to the serializer object? #1094

Open
programlife555 opened this issue Dec 28, 2023 · 0 comments
Open

Is it possible to add context to the serializer object? #1094

programlife555 opened this issue Dec 28, 2023 · 0 comments

Comments

@programlife555
Copy link

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
    S: Serializer,
{
  let val = serializer.get_context().get("xxxx");
  .........................................................
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant