feat: add fn to get all workspace names

This commit is contained in:
əlemi 2024-08-08 04:14:13 +02:00
parent 793cebb787
commit 898ab22e22
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -112,6 +112,11 @@ impl Client {
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
pub fn user_id(&self) -> Uuid {
self.0.user_id