Struct sql_parser::ast::defs::name::Ident [−][src]
pub struct Ident(pub(crate) String);
Expand description
An identifier.
Tuple Fields
0: String
Implementations
Create a new identifier with the given value.
An identifier can be printed in bare mode if
- it matches the regex [a-z_][a-z0-9_]* and
- it is not a “reserved keyword.”
Trait Implementations
More-or-less a direct translation of the Postgres function for doing the same thing:
https://github.com/postgres/postgres/blob/master/src/backend/utils/adt/ruleutils.c#L10730-L10812
Quotation is forced when printing in Stable mode.
Auto Trait Implementations
impl RefUnwindSafe for Ident
impl UnwindSafe for Ident
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}
) and returns it.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more