pub enum Identity {
AgentIdentity {
id: String,
name: String,
tenant_id: Option<String>,
},
Human {
id: String,
tenant_id: Option<String>,
},
Anonymous,
}Variants§
AgentIdentity
An agent authenticated via API key. tenant_id mirrors the agent’s owner_id
and is used for multi-tenant data isolation — agents only see data belonging to
their owner. None means single-tenant / OSS mode (no filtering).
Human
A human user. tenant_id is used for multi-tenant data isolation (e.g. in TaskForge).
The OSS single-tenant engine ignores it; multi-tenant backends filter by it.
Anonymous
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more