pub struct TableNames {
pub roles: String,
pub permissions: String,
pub role_permission: String,
pub user_role: String,
pub user_permission: String,
}Expand description
Where the five tables live.
Configurable for two reasons. An application may already own a permissions
table and not want this one on top of it; and the framework’s own
integration tests run concurrently against one database, so each needs a set
of its own — see TableNames::suffixed.
Fields§
§roles: String§permissions: String§role_permission: String§user_role: String§user_permission: StringImplementations§
Source§impl TableNames
impl TableNames
Sourcepub fn suffixed(suffix: &str) -> Self
pub fn suffixed(suffix: &str) -> Self
The conventional names with a suffix on each: roles_a1, user_role_a1.
One test, one suffix. Two tests sharing a table would pass or fail depending on which finished first.
Trait Implementations§
Source§impl Clone for TableNames
impl Clone for TableNames
Source§impl Debug for TableNames
impl Debug for TableNames
Source§impl Default for TableNames
impl Default for TableNames
impl Eq for TableNames
Source§impl PartialEq for TableNames
impl PartialEq for TableNames
impl StructuralPartialEq for TableNames
Auto Trait Implementations§
impl Freeze for TableNames
impl RefUnwindSafe for TableNames
impl Send for TableNames
impl Sync for TableNames
impl Unpin for TableNames
impl UnsafeUnpin for TableNames
impl UnwindSafe for TableNames
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more