mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
feat: add fn to get all workspace names
This commit is contained in:
parent
793cebb787
commit
898ab22e22
1 changed files with 5 additions and 0 deletions
|
@ -112,6 +112,11 @@ impl Client {
|
||||||
self.0.workspaces.get(id).map(|x| x.clone())
|
self.0.workspaces.get(id).map(|x| x.clone())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// get name of all active [Workspace]s
|
||||||
|
pub fn active_workspaces(&self) -> Vec<String> {
|
||||||
|
self.0.workspaces.iter().map(|x| x.key().to_string()).collect()
|
||||||
|
}
|
||||||
|
|
||||||
/// accessor for user id
|
/// accessor for user id
|
||||||
pub fn user_id(&self) -> Uuid {
|
pub fn user_id(&self) -> Uuid {
|
||||||
self.0.user_id
|
self.0.user_id
|
||||||
|
|
Loading…
Reference in a new issue