Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

"__r#type" is not a valid identifier #839

Closed
@ShadowJonathan

Description

@ShadowJonathan

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp