add: user associations
This commit is contained in:
parent
50319f9124
commit
675b3e4ee6
11 changed files with 131 additions and 9 deletions
|
@ -46,6 +46,9 @@ pub struct User {
|
|||
/// The grants associated with the user's account.
|
||||
#[serde(default)]
|
||||
pub grants: Vec<AuthGrant>,
|
||||
/// A list of the IDs of all accounts the user has signed into through the UI.
|
||||
#[serde(default)]
|
||||
pub associated: Vec<usize>,
|
||||
}
|
||||
|
||||
pub type UserConnections =
|
||||
|
@ -261,6 +264,7 @@ impl User {
|
|||
connections: HashMap::new(),
|
||||
stripe_id: String::new(),
|
||||
grants: Vec::new(),
|
||||
associated: Vec::new(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue