lox/crates/lox-library/src/migration_table.rs

16 lines
576 B
Rust
Raw Normal View History

/*! The migration table.
This is a table listing pairs of (from_bucket_id, to_bucket_id). A pair
in this table indicates that a user with a Lox credential containing
from_bucket_id (and possibly meeting other conditions as well) is
entitled to exchange their credential for one with to_bucket_id. (Note
that the credentials contain the bucket attributes, which include both
the id and the bucket decrytpion key, but the table just contains the
bucket ids.) */
/// The migration table
#[derive(Default, Debug)]
pub struct MigrationTable {
pub table: Vec<(u32, u32)>,
}