#[repr(i32)]pub enum Token {
Show 542 variants
Nul = 0,
Ascii36 = 36,
Ascii37 = 37,
Ascii40 = 40,
Ascii41 = 41,
Ascii42 = 42,
Ascii43 = 43,
Ascii44 = 44,
Ascii45 = 45,
Ascii46 = 46,
Ascii47 = 47,
Ascii58 = 58,
Ascii59 = 59,
Ascii60 = 60,
Ascii61 = 61,
Ascii62 = 62,
Ascii63 = 63,
Ascii91 = 91,
Ascii92 = 92,
Ascii93 = 93,
Ascii94 = 94,
Ident = 258,
Uident = 259,
Fconst = 260,
Sconst = 261,
Usconst = 262,
Bconst = 263,
Xconst = 264,
Op = 265,
Iconst = 266,
Param = 267,
Typecast = 268,
DotDot = 269,
ColonEquals = 270,
EqualsGreater = 271,
LessEquals = 272,
GreaterEquals = 273,
NotEquals = 274,
SqlComment = 275,
CComment = 276,
AbortP = 277,
Absent = 278,
AbsoluteP = 279,
Access = 280,
Action = 281,
AddP = 282,
Admin = 283,
After = 284,
Aggregate = 285,
All = 286,
Also = 287,
Alter = 288,
Always = 289,
Analyse = 290,
Analyze = 291,
And = 292,
Any = 293,
Array = 294,
As = 295,
Asc = 296,
Asensitive = 297,
Assertion = 298,
Assignment = 299,
Asymmetric = 300,
Atomic = 301,
At = 302,
Attach = 303,
Attribute = 304,
Authorization = 305,
Backward = 306,
Before = 307,
BeginP = 308,
Between = 309,
Bigint = 310,
Binary = 311,
Bit = 312,
BooleanP = 313,
Both = 314,
Breadth = 315,
By = 316,
Cache = 317,
Call = 318,
Called = 319,
Cascade = 320,
Cascaded = 321,
Case = 322,
Cast = 323,
CatalogP = 324,
Chain = 325,
CharP = 326,
Character = 327,
Characteristics = 328,
Check = 329,
Checkpoint = 330,
Class = 331,
Close = 332,
Cluster = 333,
Coalesce = 334,
Collate = 335,
Collation = 336,
Column = 337,
Columns = 338,
Comment = 339,
Comments = 340,
Commit = 341,
Committed = 342,
Compression = 343,
Concurrently = 344,
Conditional = 345,
Configuration = 346,
Conflict = 347,
Connection = 348,
Constraint = 349,
Constraints = 350,
ContentP = 351,
ContinueP = 352,
ConversionP = 353,
Copy = 354,
Cost = 355,
Create = 356,
Cross = 357,
Csv = 358,
Cube = 359,
CurrentP = 360,
CurrentCatalog = 361,
CurrentDate = 362,
CurrentRole = 363,
CurrentSchema = 364,
CurrentTime = 365,
CurrentTimestamp = 366,
CurrentUser = 367,
Cursor = 368,
Cycle = 369,
DataP = 370,
Database = 371,
DayP = 372,
Deallocate = 373,
Dec = 374,
DecimalP = 375,
Declare = 376,
Default = 377,
Defaults = 378,
Deferrable = 379,
Deferred = 380,
Definer = 381,
DeleteP = 382,
Delimiter = 383,
Delimiters = 384,
Depends = 385,
Depth = 386,
Desc = 387,
Detach = 388,
Dictionary = 389,
DisableP = 390,
Discard = 391,
Distinct = 392,
Do = 393,
DocumentP = 394,
DomainP = 395,
DoubleP = 396,
Drop = 397,
Each = 398,
Else = 399,
EmptyP = 400,
EnableP = 401,
Encoding = 402,
Encrypted = 403,
EndP = 404,
EnumP = 405,
ErrorP = 406,
Escape = 407,
Event = 408,
Except = 409,
Exclude = 410,
Excluding = 411,
Exclusive = 412,
Execute = 413,
Exists = 414,
Explain = 415,
Expression = 416,
Extension = 417,
External = 418,
Extract = 419,
FalseP = 420,
Family = 421,
Fetch = 422,
Filter = 423,
Finalize = 424,
FirstP = 425,
FloatP = 426,
Following = 427,
For = 428,
Force = 429,
Foreign = 430,
Format = 431,
Forward = 432,
Freeze = 433,
From = 434,
Full = 435,
Function = 436,
Functions = 437,
Generated = 438,
Global = 439,
Grant = 440,
Granted = 441,
Greatest = 442,
GroupP = 443,
Grouping = 444,
Groups = 445,
Handler = 446,
Having = 447,
HeaderP = 448,
Hold = 449,
HourP = 450,
IdentityP = 451,
IfP = 452,
Ilike = 453,
Immediate = 454,
Immutable = 455,
ImplicitP = 456,
ImportP = 457,
InP = 458,
Include = 459,
Including = 460,
Increment = 461,
Indent = 462,
Index = 463,
Indexes = 464,
Inherit = 465,
Inherits = 466,
Initially = 467,
InlineP = 468,
InnerP = 469,
Inout = 470,
InputP = 471,
Insensitive = 472,
Insert = 473,
Instead = 474,
IntP = 475,
Integer = 476,
Intersect = 477,
Interval = 478,
Into = 479,
Invoker = 480,
Is = 481,
Isnull = 482,
Isolation = 483,
Join = 484,
Json = 485,
JsonArray = 486,
JsonArrayagg = 487,
JsonExists = 488,
JsonObject = 489,
JsonObjectagg = 490,
JsonQuery = 491,
JsonScalar = 492,
JsonSerialize = 493,
JsonTable = 494,
JsonValue = 495,
Keep = 496,
Key = 497,
Keys = 498,
Label = 499,
Language = 500,
LargeP = 501,
LastP = 502,
LateralP = 503,
Leading = 504,
Leakproof = 505,
Least = 506,
Left = 507,
Level = 508,
Like = 509,
Limit = 510,
Listen = 511,
Load = 512,
Local = 513,
Localtime = 514,
Localtimestamp = 515,
Location = 516,
LockP = 517,
Locked = 518,
Logged = 519,
Mapping = 520,
Match = 521,
Matched = 522,
Materialized = 523,
Maxvalue = 524,
Merge = 525,
MergeAction = 526,
Method = 527,
MinuteP = 528,
Minvalue = 529,
Mode = 530,
MonthP = 531,
Move = 532,
NameP = 533,
Names = 534,
National = 535,
Natural = 536,
Nchar = 537,
Nested = 538,
New = 539,
Next = 540,
Nfc = 541,
Nfd = 542,
Nfkc = 543,
Nfkd = 544,
No = 545,
None = 546,
Normalize = 547,
Normalized = 548,
Not = 549,
Nothing = 550,
Notify = 551,
Notnull = 552,
Nowait = 553,
NullP = 554,
Nullif = 555,
NullsP = 556,
Numeric = 557,
ObjectP = 558,
Of = 559,
Off = 560,
Offset = 561,
Oids = 562,
Old = 563,
Omit = 564,
On = 565,
Only = 566,
Operator = 567,
Option = 568,
Options = 569,
Or = 570,
Order = 571,
Ordinality = 572,
Others = 573,
OutP = 574,
OuterP = 575,
Over = 576,
Overlaps = 577,
Overlay = 578,
Overriding = 579,
Owned = 580,
Owner = 581,
Parallel = 582,
Parameter = 583,
Parser = 584,
Partial = 585,
Partition = 586,
Passing = 587,
Password = 588,
Path = 589,
Placing = 590,
Plan = 591,
Plans = 592,
Policy = 593,
Position = 594,
Preceding = 595,
Precision = 596,
Preserve = 597,
Prepare = 598,
Prepared = 599,
Primary = 600,
Prior = 601,
Privileges = 602,
Procedural = 603,
Procedure = 604,
Procedures = 605,
Program = 606,
Publication = 607,
Quote = 608,
Quotes = 609,
Range = 610,
Read = 611,
Real = 612,
Reassign = 613,
Recheck = 614,
Recursive = 615,
RefP = 616,
References = 617,
Referencing = 618,
Refresh = 619,
Reindex = 620,
RelativeP = 621,
Release = 622,
Rename = 623,
Repeatable = 624,
Replace = 625,
Replica = 626,
Reset = 627,
Restart = 628,
Restrict = 629,
Return = 630,
Returning = 631,
Returns = 632,
Revoke = 633,
Right = 634,
Role = 635,
Rollback = 636,
Rollup = 637,
Routine = 638,
Routines = 639,
Row = 640,
Rows = 641,
Rule = 642,
Savepoint = 643,
Scalar = 644,
Schema = 645,
Schemas = 646,
Scroll = 647,
Search = 648,
SecondP = 649,
Security = 650,
Select = 651,
Sequence = 652,
Sequences = 653,
Serializable = 654,
Server = 655,
Session = 656,
SessionUser = 657,
Set = 658,
Sets = 659,
Setof = 660,
Share = 661,
Show = 662,
Similar = 663,
Simple = 664,
Skip = 665,
Smallint = 666,
Snapshot = 667,
Some = 668,
Source = 669,
SqlP = 670,
Stable = 671,
StandaloneP = 672,
Start = 673,
Statement = 674,
Statistics = 675,
Stdin = 676,
Stdout = 677,
Storage = 678,
Stored = 679,
StrictP = 680,
StringP = 681,
StripP = 682,
Subscription = 683,
Substring = 684,
Support = 685,
Symmetric = 686,
Sysid = 687,
SystemP = 688,
SystemUser = 689,
Table = 690,
Tables = 691,
Tablesample = 692,
Tablespace = 693,
Target = 694,
Temp = 695,
Template = 696,
Temporary = 697,
TextP = 698,
Then = 699,
Ties = 700,
Time = 701,
Timestamp = 702,
To = 703,
Trailing = 704,
Transaction = 705,
Transform = 706,
Treat = 707,
Trigger = 708,
Trim = 709,
TrueP = 710,
Truncate = 711,
Trusted = 712,
TypeP = 713,
TypesP = 714,
Uescape = 715,
Unbounded = 716,
Unconditional = 717,
Uncommitted = 718,
Unencrypted = 719,
Union = 720,
Unique = 721,
Unknown = 722,
Unlisten = 723,
Unlogged = 724,
Until = 725,
Update = 726,
User = 727,
Using = 728,
Vacuum = 729,
Valid = 730,
Validate = 731,
Validator = 732,
ValueP = 733,
Values = 734,
Varchar = 735,
Variadic = 736,
Varying = 737,
Verbose = 738,
VersionP = 739,
View = 740,
Views = 741,
Volatile = 742,
When = 743,
Where = 744,
WhitespaceP = 745,
Window = 746,
With = 747,
Within = 748,
Without = 749,
Work = 750,
Wrapper = 751,
Write = 752,
XmlP = 753,
Xmlattributes = 754,
Xmlconcat = 755,
Xmlelement = 756,
Xmlexists = 757,
Xmlforest = 758,
Xmlnamespaces = 759,
Xmlparse = 760,
Xmlpi = 761,
Xmlroot = 762,
Xmlserialize = 763,
Xmltable = 764,
YearP = 765,
YesP = 766,
Zone = 767,
FormatLa = 768,
NotLa = 769,
NullsLa = 770,
WithLa = 771,
WithoutLa = 772,
ModeTypeName = 773,
ModePlpgsqlExpr = 774,
ModePlpgsqlAssign1 = 775,
ModePlpgsqlAssign2 = 776,
ModePlpgsqlAssign3 = 777,
Uminus = 778,
}
Variants§
Nul = 0
Ascii36 = 36
Single-character tokens that are returned 1:1 (identical with “self” list in scan.l) Either supporting syntax, or single-character operators (some can be both) Also see https://www.postgresql.org/docs/12/sql-syntax-lexical.html#SQL-SYNTAX-SPECIAL-CHARS
“$”
Ascii37 = 37
“%”
Ascii40 = 40
“(”
Ascii41 = 41
“)”
Ascii42 = 42
“*”
Ascii43 = 43
“+”
Ascii44 = 44
“,”
Ascii45 = 45
“-”
Ascii46 = 46
“.”
Ascii47 = 47
“/”
Ascii58 = 58
“:”
Ascii59 = 59
“;”
Ascii60 = 60
“<”
Ascii61 = 61
“=”
Ascii62 = 62
“>”
Ascii63 = 63
“?”
Ascii91 = 91
“[”
Ascii92 = 92
“"
Ascii93 = 93
“]”
Ascii94 = 94
“^”
Ident = 258
Named tokens in scan.l
Uident = 259
Fconst = 260
Sconst = 261
Usconst = 262
Bconst = 263
Xconst = 264
Op = 265
Iconst = 266
Param = 267
Typecast = 268
DotDot = 269
ColonEquals = 270
EqualsGreater = 271
LessEquals = 272
GreaterEquals = 273
NotEquals = 274
SqlComment = 275
CComment = 276
AbortP = 277
Absent = 278
AbsoluteP = 279
Access = 280
Action = 281
AddP = 282
Admin = 283
After = 284
Aggregate = 285
All = 286
Also = 287
Alter = 288
Always = 289
Analyse = 290
Analyze = 291
And = 292
Any = 293
Array = 294
As = 295
Asc = 296
Asensitive = 297
Assertion = 298
Assignment = 299
Asymmetric = 300
Atomic = 301
At = 302
Attach = 303
Attribute = 304
Authorization = 305
Backward = 306
Before = 307
BeginP = 308
Between = 309
Bigint = 310
Binary = 311
Bit = 312
BooleanP = 313
Both = 314
Breadth = 315
By = 316
Cache = 317
Call = 318
Called = 319
Cascade = 320
Cascaded = 321
Case = 322
Cast = 323
CatalogP = 324
Chain = 325
CharP = 326
Character = 327
Characteristics = 328
Check = 329
Checkpoint = 330
Class = 331
Close = 332
Cluster = 333
Coalesce = 334
Collate = 335
Collation = 336
Column = 337
Columns = 338
Comment = 339
Comments = 340
Commit = 341
Committed = 342
Compression = 343
Concurrently = 344
Conditional = 345
Configuration = 346
Conflict = 347
Connection = 348
Constraint = 349
Constraints = 350
ContentP = 351
ContinueP = 352
ConversionP = 353
Copy = 354
Cost = 355
Create = 356
Cross = 357
Csv = 358
Cube = 359
CurrentP = 360
CurrentCatalog = 361
CurrentDate = 362
CurrentRole = 363
CurrentSchema = 364
CurrentTime = 365
CurrentTimestamp = 366
CurrentUser = 367
Cursor = 368
Cycle = 369
DataP = 370
Database = 371
DayP = 372
Deallocate = 373
Dec = 374
DecimalP = 375
Declare = 376
Default = 377
Defaults = 378
Deferrable = 379
Deferred = 380
Definer = 381
DeleteP = 382
Delimiter = 383
Delimiters = 384
Depends = 385
Depth = 386
Desc = 387
Detach = 388
Dictionary = 389
DisableP = 390
Discard = 391
Distinct = 392
Do = 393
DocumentP = 394
DomainP = 395
DoubleP = 396
Drop = 397
Each = 398
Else = 399
EmptyP = 400
EnableP = 401
Encoding = 402
Encrypted = 403
EndP = 404
EnumP = 405
ErrorP = 406
Escape = 407
Event = 408
Except = 409
Exclude = 410
Excluding = 411
Exclusive = 412
Execute = 413
Exists = 414
Explain = 415
Expression = 416
Extension = 417
External = 418
Extract = 419
FalseP = 420
Family = 421
Fetch = 422
Filter = 423
Finalize = 424
FirstP = 425
FloatP = 426
Following = 427
For = 428
Force = 429
Foreign = 430
Format = 431
Forward = 432
Freeze = 433
From = 434
Full = 435
Function = 436
Functions = 437
Generated = 438
Global = 439
Grant = 440
Granted = 441
Greatest = 442
GroupP = 443
Grouping = 444
Groups = 445
Handler = 446
Having = 447
HeaderP = 448
Hold = 449
HourP = 450
IdentityP = 451
IfP = 452
Ilike = 453
Immediate = 454
Immutable = 455
ImplicitP = 456
ImportP = 457
InP = 458
Include = 459
Including = 460
Increment = 461
Indent = 462
Index = 463
Indexes = 464
Inherit = 465
Inherits = 466
Initially = 467
InlineP = 468
InnerP = 469
Inout = 470
InputP = 471
Insensitive = 472
Insert = 473
Instead = 474
IntP = 475
Integer = 476
Intersect = 477
Interval = 478
Into = 479
Invoker = 480
Is = 481
Isnull = 482
Isolation = 483
Join = 484
Json = 485
JsonArray = 486
JsonArrayagg = 487
JsonExists = 488
JsonObject = 489
JsonObjectagg = 490
JsonQuery = 491
JsonScalar = 492
JsonSerialize = 493
JsonTable = 494
JsonValue = 495
Keep = 496
Key = 497
Keys = 498
Label = 499
Language = 500
LargeP = 501
LastP = 502
LateralP = 503
Leading = 504
Leakproof = 505
Least = 506
Left = 507
Level = 508
Like = 509
Limit = 510
Listen = 511
Load = 512
Local = 513
Localtime = 514
Localtimestamp = 515
Location = 516
LockP = 517
Locked = 518
Logged = 519
Mapping = 520
Match = 521
Matched = 522
Materialized = 523
Maxvalue = 524
Merge = 525
MergeAction = 526
Method = 527
MinuteP = 528
Minvalue = 529
Mode = 530
MonthP = 531
Move = 532
NameP = 533
Names = 534
National = 535
Natural = 536
Nchar = 537
Nested = 538
New = 539
Next = 540
Nfc = 541
Nfd = 542
Nfkc = 543
Nfkd = 544
No = 545
None = 546
Normalize = 547
Normalized = 548
Not = 549
Nothing = 550
Notify = 551
Notnull = 552
Nowait = 553
NullP = 554
Nullif = 555
NullsP = 556
Numeric = 557
ObjectP = 558
Of = 559
Off = 560
Offset = 561
Oids = 562
Old = 563
Omit = 564
On = 565
Only = 566
Operator = 567
Option = 568
Options = 569
Or = 570
Order = 571
Ordinality = 572
Others = 573
OutP = 574
OuterP = 575
Over = 576
Overlaps = 577
Overlay = 578
Overriding = 579
Owned = 580
Owner = 581
Parallel = 582
Parameter = 583
Parser = 584
Partial = 585
Partition = 586
Passing = 587
Password = 588
Path = 589
Placing = 590
Plan = 591
Plans = 592
Policy = 593
Position = 594
Preceding = 595
Precision = 596
Preserve = 597
Prepare = 598
Prepared = 599
Primary = 600
Prior = 601
Privileges = 602
Procedural = 603
Procedure = 604
Procedures = 605
Program = 606
Publication = 607
Quote = 608
Quotes = 609
Range = 610
Read = 611
Real = 612
Reassign = 613
Recheck = 614
Recursive = 615
RefP = 616
References = 617
Referencing = 618
Refresh = 619
Reindex = 620
RelativeP = 621
Release = 622
Rename = 623
Repeatable = 624
Replace = 625
Replica = 626
Reset = 627
Restart = 628
Restrict = 629
Return = 630
Returning = 631
Returns = 632
Revoke = 633
Right = 634
Role = 635
Rollback = 636
Rollup = 637
Routine = 638
Routines = 639
Row = 640
Rows = 641
Rule = 642
Savepoint = 643
Scalar = 644
Schema = 645
Schemas = 646
Scroll = 647
Search = 648
SecondP = 649
Security = 650
Select = 651
Sequence = 652
Sequences = 653
Serializable = 654
Server = 655
Session = 656
SessionUser = 657
Set = 658
Sets = 659
Setof = 660
Show = 662
Similar = 663
Simple = 664
Skip = 665
Smallint = 666
Snapshot = 667
Some = 668
Source = 669
SqlP = 670
Stable = 671
StandaloneP = 672
Start = 673
Statement = 674
Statistics = 675
Stdin = 676
Stdout = 677
Storage = 678
Stored = 679
StrictP = 680
StringP = 681
StripP = 682
Subscription = 683
Substring = 684
Support = 685
Symmetric = 686
Sysid = 687
SystemP = 688
SystemUser = 689
Table = 690
Tables = 691
Tablesample = 692
Tablespace = 693
Target = 694
Temp = 695
Template = 696
Temporary = 697
TextP = 698
Then = 699
Ties = 700
Time = 701
Timestamp = 702
To = 703
Trailing = 704
Transaction = 705
Transform = 706
Treat = 707
Trigger = 708
Trim = 709
TrueP = 710
Truncate = 711
Trusted = 712
TypeP = 713
TypesP = 714
Uescape = 715
Unbounded = 716
Unconditional = 717
Uncommitted = 718
Unencrypted = 719
Union = 720
Unique = 721
Unknown = 722
Unlisten = 723
Unlogged = 724
Until = 725
Update = 726
User = 727
Using = 728
Vacuum = 729
Valid = 730
Validate = 731
Validator = 732
ValueP = 733
Values = 734
Varchar = 735
Variadic = 736
Varying = 737
Verbose = 738
VersionP = 739
View = 740
Views = 741
Volatile = 742
When = 743
Where = 744
WhitespaceP = 745
Window = 746
With = 747
Within = 748
Without = 749
Work = 750
Wrapper = 751
Write = 752
XmlP = 753
Xmlattributes = 754
Xmlconcat = 755
Xmlelement = 756
Xmlexists = 757
Xmlforest = 758
Xmlnamespaces = 759
Xmlparse = 760
Xmlpi = 761
Xmlroot = 762
Xmlserialize = 763
Xmltable = 764
YearP = 765
YesP = 766
Zone = 767
FormatLa = 768
NotLa = 769
NullsLa = 770
WithLa = 771
WithoutLa = 772
ModeTypeName = 773
ModePlpgsqlExpr = 774
ModePlpgsqlAssign1 = 775
ModePlpgsqlAssign2 = 776
ModePlpgsqlAssign3 = 777
Uminus = 778
Implementations§
Source§impl Token
impl Token
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for Token
impl Ord for Token
Source§impl PartialOrd for Token
impl PartialOrd for Token
impl Copy for Token
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more