You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
// Specifies a location to extract JWT from an API request.messageJwtLocation {
oneofin {
// Specifies HTTP header name to extract JWT token.stringheader=1;
// Specifies URL query parameter name to extract JWT token.stringquery=2;
}
protoc_rust_grpc generates:
auth.rs:
#[derive(PartialEq,Clone,Default)]pubstructJwtLocation{// message fieldspubvalue_prefix:::std::string::String,// message oneof groupspubin:::std::option::Option<JwtLocation_oneof_in>,// special fieldspubunknown_fields:::protobuf::UnknownFields,pubcached_size:::protobuf::CachedSize,}
Results in:
expected identifier, found keyword `in`
expected identifier, found keyword
help: you can escape reserved keywords to use them as identifiers: `r#in`
It's unclear to me whether prefixing all|keyword fields with raw string literals would address this issue comprehensively.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
E.g. googleapis/google/api/auth.proto#JwtLocation:
protoc_rust_grpc
generates:auth.rs
:Results in:
It's unclear to me whether prefixing all|keyword fields with raw string literals would address this issue comprehensively.
The text was updated successfully, but these errors were encountered: