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

Make RawValue::from_borrowed public #2865

Open
matthiasg opened this issue Dec 4, 2024 · 0 comments
Open

Make RawValue::from_borrowed public #2865

matthiasg opened this issue Dec 4, 2024 · 0 comments

Comments

@matthiasg
Copy link

I would propose making from_borrowed public. It is very helpful in certain scenarios where a string is known to be stored in a structure which then needs to be serialized as is.

Theoretically this could also be handled by a serde field macro hint e.g #[serde(raw)] etc, but it is also helpful in other contexts.

Is there a specific reason of making this not public ?

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