weave-locus · stat
Source declarations, signatures and documentation for stat.
Reviewed implementation boundary: Rollback records a marker; mount descriptions and governance metadata alone do not execute mounting or enforce signature authorization. Operations can have separate metadata/blob failure points. See /libraries/locus/overview.
Source: sigil/weave/models/locus/src/stat.rs. SHA-256: 63ea747e41d0ae98dd4d81a067ec44f6241b679085c8063d8fe998edf3eef269.
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.
stat::Stat
File statistics
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Stat {
/// Entry ID
pub id: Uuid,
/// Entry type
pub entry_type: EntryType,
/// Size in bytes
pub size: u64,
/// Permissions mode
pub mode: u32,
/// Creation time
pub created: SystemTime,
/// Modified time
pub modified: SystemTime,
/// Accessed time
pub accessed: SystemTime,
/// Version number
pub version: u64,
/// Number of hard links
pub nlinks: u32
}Source line: 11.
stat::StatExt
Extended file statistics
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct StatExt {
/// Basic stats
pub stat: Stat,
/// Extended attributes
pub xattrs: Option<serde_json::Value>,
/// Symlink target
pub symlink_target: Option<String>,
/// Blob ID for content
pub blob_id: Option<[u8; 32]>
}Source line: 58.
stat::StatExt::from_metadata
Create from metadata
pub fn from_metadata(id: Uuid, metadata: &FileMetadata) -> Self;Source line: 74.