Public declaration syntax from forge-rs/harness-runtime/src/planes/memory.rs
Original source SHA-256: 755e65916c753569218181cc1b70e58894bd5ca8d419d07dfa06f2192d2ac6ea
Function bodies and constant values are omitted. This is not the complete implementation.
Source line 13
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct MemoryWrite {
/// Which memory type the write targets.
pub kind: MemoryType,
/// Application-defined key.
pub key: String,
/// The content to store.
pub content: String
}
Source line 24
#[async_trait]
pub trait MemoryPlane: Plane {
/// Write into the bound mind. Returns the provider's evidence
/// reference for the write, when it produces one.
async fn write(&self, write: MemoryWrite) -> Result