Public declaration syntax from forge-rs/crates/forge-memory/src/scope.rs Original source SHA-256: 868c632f92c6c554919bf78164c128321843047ccb0704fb51627285ecbacaa0 Function bodies and constant values are omitted. This is not the complete implementation. Source line 24 #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize, PartialOrd, Ord)] #[serde(rename_all = "snake_case")] pub enum MemoryScope { /// Agent-local memory. Private to the agent instance. Agent, /// Task-scoped memory. Discarded when the task completes. Task, /// Team/project-scoped memory. Shared within a team. Team, /// Organization-wide memory. Accessible by all authorized agents. Org, } Source line 37 pub fn as_str(&self) -> &'static str; Source line 49 pub fn is_narrower_than(&self, other: &MemoryScope) -> bool; Source line 54 pub fn is_wider_than(&self, other: &MemoryScope) -> bool; Source line 72 pub fn namespace(&self, owner_id: &str) -> String;