- Notifications
You must be signed in to change notification settings - Fork516
Closed
Description
I currently have to work with the raw identifierr#type
, as one database table is using this. I can't change this name, as i'm merely reading out the data from a pre-existing format.
However, when i try to put in a struct format, like so;
#[derive(Debug,ToSql,FromSql)]structDeviceInboxMessageFormat{pubmessages:Json<HashMap<UserId,HashMap<DeviceId,Value>>>,pubsender:UserId,pubr#type:String,}
The proc-macro panics on;
error: proc-macro derive panicked --> adapters/synapse/src/extract.rs:83:24 |83 | #[derive(Debug, ToSql, FromSql)] | ^^^^^^^ | = help: message: `"__r#type"` is not a valid identifier
I think this problem will be the same across all raw identifiers.
Metadata
Metadata
Assignees
Labels
No labels