You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the trait bound `str: std::clone::Clone` is not satisfied
the trait `std::clone::Clone` is implemented for `std::string::String`
required for `secrecy::SecretBox<str>` to implement `maven::_::_serde::Deserialize<'_>`rustc[Click for full compiler diagnostic](... snip ...)
de.rs(25, 8): required by a bound in `maven::_::_serde::__private::de::missing_field`
In my use case, the secret is transmitted across the network so I really don't care about leaking on the stack vs the heap. What I really want is to just avoid having this value accidentally emitted in logs, so I just want it to be deserialized directly upon receipt and stored from there.
Is this library still a good fit for this use case? If so, how can I make this work?
The text was updated successfully, but these errors were encountered:
It needs a special impl since `SecretBox<str>` (which `SecretString` is
a type alias for) doesn't meet the `Clone` bound (i.e. `str` doesn't
impl `Clone`).
Closes#1219
It's very unclear how to do this after the latest release (
secrecy 0.10.1
).This works:
But this fails:
The error message:
In my use case, the secret is transmitted across the network so I really don't care about leaking on the stack vs the heap. What I really want is to just avoid having this value accidentally emitted in logs, so I just want it to be deserialized directly upon receipt and stored from there.
Is this library still a good fit for this use case? If so, how can I make this work?
The text was updated successfully, but these errors were encountered: