We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Token
String
&str
1 parent ebbf0b6 commit 5272391Copy full SHA for 5272391
src/secrets.rs
@@ -49,7 +49,7 @@ impl typesize::TypeSize for SecretString {
49
/// A type for securely storing and passing around a Discord token.
50
#[cfg_attr(feature = "typesize", derive(typesize::derive::TypeSize))]
51
#[derive(Clone, Debug, Deserialize, Serialize)]
52
-#[serde(try_from = "&str")]
+#[serde(try_from = "String")]
53
pub struct Token(SecretString);
54
55
impl Token {
0 commit comments