diff --git a/src/client.rs b/src/client.rs index 520ac91..d61beb2 100644 --- a/src/client.rs +++ b/src/client.rs @@ -144,6 +144,10 @@ impl Client { Ok(ws) } + pub fn get_workspace(&self, id: &str) -> Option> { + self.workspaces.get(id).map(|x| x.clone()) + } + /// accessor for user id pub fn user_id(&self) -> Uuid { self.user_id