Skip to main content

Iden

Trait Iden 

Source
pub trait Iden {
    // Required method
    fn as_str(&self) -> &str;
}
Expand description

Something that names a table, column or alias.

Implemented for string types and, through the derive macros in turso-orm, for column and table enums.

Required Methods§

Source

fn as_str(&self) -> &str

The unquoted identifier.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Iden for &str

Source§

fn as_str(&self) -> &str

Source§

impl Iden for String

Source§

fn as_str(&self) -> &str

Implementors§