Skip to main content

AuthApiKeyMeta

Trait AuthApiKeyMeta 

Source
pub trait AuthApiKeyMeta {
Show 22 methods // Provided methods fn table() -> &'static str { ... } fn col_id() -> &'static str { ... } fn col_name() -> &'static str { ... } fn col_start() -> &'static str { ... } fn col_prefix() -> &'static str { ... } fn col_key_hash() -> &'static str { ... } fn col_user_id() -> &'static str { ... } fn col_refill_interval() -> &'static str { ... } fn col_refill_amount() -> &'static str { ... } fn col_last_refill_at() -> &'static str { ... } fn col_enabled() -> &'static str { ... } fn col_rate_limit_enabled() -> &'static str { ... } fn col_rate_limit_time_window() -> &'static str { ... } fn col_rate_limit_max() -> &'static str { ... } fn col_request_count() -> &'static str { ... } fn col_remaining() -> &'static str { ... } fn col_last_request() -> &'static str { ... } fn col_expires_at() -> &'static str { ... } fn col_created_at() -> &'static str { ... } fn col_updated_at() -> &'static str { ... } fn col_permissions() -> &'static str { ... } fn col_metadata() -> &'static str { ... }
}
Expand description

SQL column/table metadata for AuthApiKey entities.

Provided Methods§

Source

fn table() -> &'static str

Source

fn col_id() -> &'static str

Source

fn col_name() -> &'static str

Source

fn col_start() -> &'static str

Source

fn col_prefix() -> &'static str

Source

fn col_key_hash() -> &'static str

Database column for the API key hash.

The default better-auth schema uses the column name key (even though it may be a reserved word in some SQL dialects). The SqlxAdapter quotes SQL identifiers, so using key here is safe.

Source

fn col_user_id() -> &'static str

Source

fn col_refill_interval() -> &'static str

Source

fn col_refill_amount() -> &'static str

Source

fn col_last_refill_at() -> &'static str

Source

fn col_enabled() -> &'static str

Source

fn col_rate_limit_enabled() -> &'static str

Source

fn col_rate_limit_time_window() -> &'static str

Source

fn col_rate_limit_max() -> &'static str

Source

fn col_request_count() -> &'static str

Source

fn col_remaining() -> &'static str

Source

fn col_last_request() -> &'static str

Source

fn col_expires_at() -> &'static str

Source

fn col_created_at() -> &'static str

Source

fn col_updated_at() -> &'static str

Source

fn col_permissions() -> &'static str

Source

fn col_metadata() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§