weave-agentfs · entry
Source declarations, signatures and documentation for entry.
Source: sigil/weave/local/agentfs/src/entry.rs. SHA-256: 7c5927eb890cf4952c9d96e2ce28b214d36941ef8758cccd588b49a06c2ec4a2.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
entry::LocalEntry
Local file entry with agent ownership
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct LocalEntry {
/// File path (relative to root)
pub path: PathBuf,
/// Entry type
pub entry_type: EntryType,
/// File metadata
pub metadata: LocalMetadata,
/// Owner agent identity
pub owner_agent: Identity,
/// Creation time
pub created_at: SystemTime,
/// Last modification time
pub modified_at: SystemTime,
/// File size (for regular files)
pub size: Option<u64>,
/// Content hash (for regular files)
pub content_hash: Option<String>,
/// Symlink target (for symlinks)
pub link_target: Option<PathBuf>
}Source line: 11.
entry::LocalMetadata
Local metadata storage
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct LocalMetadata {
/// POSIX permissions
pub mode: u32,
/// Whether file is executable
pub executable: bool,
/// MIME type
pub mime_type: Option<String>,
/// Custom metadata
pub custom: Option<serde_json::Value>,
/// Agent-specific metadata
pub agent_metadata: Option<serde_json::Value>
}Source line: 42.
entry::LocalEntry::new_file
Create a new file entry
pub fn new_file(path: PathBuf, owner_agent: Identity, size: u64, mode: u32) -> Self;Source line: 61.
entry::LocalEntry::new_directory
Create a new directory entry
pub fn new_directory(path: PathBuf, owner_agent: Identity, mode: u32) -> Self;Source line: 82.
entry::LocalEntry::new_symlink
Create a new symlink entry
pub fn new_symlink(path: PathBuf, owner_agent: Identity, target: PathBuf, mode: u32) -> Self;Source line: 103.
entry::LocalEntry::to_locus_metadata
Convert to Locus-compatible FileMetadata
pub fn to_locus_metadata(&self) -> FileMetadata;Source line: 124.