Keep context implementations with their document models
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use super::contextualize::Contextualize;
|
||||
use super::{
|
||||
id::{IdError, validate_id},
|
||||
organization::OrganizationId,
|
||||
@@ -27,3 +28,9 @@ pub struct Workspace {
|
||||
pub organization_id: OrganizationId,
|
||||
pub name: String,
|
||||
}
|
||||
|
||||
impl Contextualize for Workspace {
|
||||
fn render_context(&self) -> String {
|
||||
format!("Workspace: {}", self.name)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user