claw10-domain 0.2.3

Domain models and types for Claw10 OS
Documentation
1
2
3
4
5
6
7
8
9
10
use serde::{Deserialize, Serialize};
use uuid::Uuid;

/// Identifies a permission role for agent delegation.
#[derive(Debug, Clone, Serialize, Deserialize, Hash, Eq, PartialEq)]
pub struct RoleId(pub Uuid);

/// A capability that can be delegated to an agent.
#[derive(Debug, Clone, Serialize, Deserialize, Hash, Eq, PartialEq, PartialOrd, Ord)]
pub struct Permission(pub String);