Replies: 1 comment
|
From the current source, this looks mechanically possible, but it is not implemented for those two types today.
pub struct Token {
pub access: AccessToken,
pub refresh: Option<RefreshToken>,
}and its derive list also omits So the immediate reason is just the derives as written: The only caveat is API/security intent. These token types deliberately redact debug output and require explicit calls like |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Curious if there is a reason for the missing
Cloneimpls for these types whileAccessTokendoes implement clonehttps://docs.rs/surrealdb/3.1.5/src/surrealdb/opt/auth.rs.html#315
Also,
PartialEq?All reactions