pub trait Iden {
// Required method
fn unquoted(&self) -> &str;
// Provided methods
fn quoted(&self) -> Cow<'static, str> { ... }
fn to_string(&self) -> String { ... }
}Expand description
Identifier
Required Methodsยง
Provided Methodsยง
Sourcefn quoted(&self) -> Cow<'static, str>
fn quoted(&self) -> Cow<'static, str>
Return the to-be sanitized version of the identifier.
For example, for MySQL โhelloโ would have to be escaped as โhel``loโ.
Note that this method doesnโt do the actual escape,
as itโs backend specific.
It only indicates whether the identifier needs to be escaped.
If the identifier doesnโt need to be escaped, return 'static str.
This can be deduced at compile-time by the Iden macro,
or using the is_static_iden function.
Cow::Owned would always be escaped.
Implementations on Foreign Typesยง
Implementorsยง
impl Iden for Identity
impl Iden for MySqlType
impl Iden for sea_orm::rbac::entity::permission::Column
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::permission::PrimaryKey
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::resource::Column
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::resource::PrimaryKey
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::role::Column
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::role::PrimaryKey
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::role_hierarchy::Column
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::role_hierarchy::PrimaryKey
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::role_permission::Column
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::role_permission::PrimaryKey
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::user_override::Column
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::user_override::PrimaryKey
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::user_role::Column
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::user_role::PrimaryKey
Available on crate feature
rbac only.impl Iden for PgLTree
impl Iden for Alias
impl Iden for NullAlias
impl Iden for SelectA
impl Iden for SelectB
impl Iden for SelectC
impl Iden for sea_orm::rbac::entity::permission::Entity
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::resource::Entity
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::role::Entity
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::role_hierarchy::Entity
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::role_permission::Entity
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::user_override::Entity
Available on crate feature
rbac only.impl Iden for sea_orm::rbac::entity::user_role::Entity
Available on crate feature
rbac only.