Rust

Fixed-window counters as rows of an Appwrite table, through the TablesDB API.

Contents

use utopia_abuse::time_limit::tables::Column;
Rust
pub struct Column

A column of the Abuse table.

use utopia_abuse::time_limit::tables::Index;
Rust
pub struct Index

An index of the Abuse table.

use utopia_abuse::time_limit::tables::Row;
Rust
pub struct Row

One row of the Abuse table.

use utopia_abuse::time_limit::tables::TablesDb;
Rust
pub struct TablesDb<T>

Counters as rows of the Abuse table of an Appwrite database.

use utopia_abuse::time_limit::tables::Tables;
Rust
pub trait Tables: Send + Sync

The TablesDB calls TablesDb makes, in database database. Errors are Error::Appwrite with the API's error type.

Rust
pub const COLUMNS: [Column; 3] = [ Column

The columns of the Abuse table, sent inline when it is created.

Rust
pub const DATABASE_NAME: &str = "Utopia"

Undocumented.

Rust
pub const INDEXES: [Index; 2] = [ Index

The indexes of the Abuse table, sent inline when it is created.

Rust
pub const TABLE_ID: &str = "Abuse"

Undocumented.

Rust
pub const TABLE_LOCK: &str = "lock"

Undocumented.

Rust
pub const TABLE_NAME: &str = "abuse"

Undocumented.