-
Notifications
You must be signed in to change notification settings - Fork 75
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
serde SecretString default_type #1228
Comments
tony-iqlusion
added a commit
that referenced
this issue
Oct 1, 2024
tony-iqlusion
added a commit
that referenced
this issue
Oct 1, 2024
Let me know if #1232 addresses your problem and I can cut a release |
hi @tony-iqlusion thanks, it works now I can only use: #[derive(Debug, Deserialize)]
pub struct Host {
pub endpoint: Option<String>,
pub region: Option<String>,
#[serde(default)]
pub access_key: String,
#[serde(default)]
pub secret_key: SecretKey,
pub bucket: Option<String>,
pub enc_key: Option<String>,
pub enc_type: Option<String>,
pub compress: Option<bool>,
}
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I am using this:
But for the
#[serde(default...
how to use Self::new inWhat could be the best (recommended way) to initialize the SecretString?
The text was updated successfully, but these errors were encountered: