weave-locus · metadata
Source declarations, signatures and documentation for metadata.
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/metadata.rs. SHA-256: a5bede6d658a65b2807e28a4119ce9a1ef1f86448cc1f4c97f93fb0dc57e9440.
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.
metadata::PermissionMode
Permission mode bits
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub struct PermissionMode(pub u32);Source line: 7.
metadata::PermissionMode::OWNER_READ
Owner read permission
pub const OWNER_READ: u32;Source line: 11.
metadata::PermissionMode::OWNER_WRITE
Owner write permission
pub const OWNER_WRITE: u32;Source line: 13.
metadata::PermissionMode::OWNER_EXEC
Owner execute permission
pub const OWNER_EXEC: u32;Source line: 15.
metadata::PermissionMode::GROUP_READ
Group read permission
pub const GROUP_READ: u32;Source line: 18.
metadata::PermissionMode::GROUP_WRITE
Group write permission
pub const GROUP_WRITE: u32;Source line: 20.
metadata::PermissionMode::GROUP_EXEC
Group execute permission
pub const GROUP_EXEC: u32;Source line: 22.
metadata::PermissionMode::OTHER_READ
Others read permission
pub const OTHER_READ: u32;Source line: 25.
metadata::PermissionMode::OTHER_WRITE
Others write permission
pub const OTHER_WRITE: u32;Source line: 27.
metadata::PermissionMode::OTHER_EXEC
Others execute permission
pub const OTHER_EXEC: u32;Source line: 29.
metadata::PermissionMode::new
Create a new permission mode
pub fn new(mode: u32) -> Self;Source line: 32.
metadata::PermissionMode::owner_can_read
Check if owner can read
pub fn owner_can_read(&self) -> bool;Source line: 37.
metadata::PermissionMode::owner_can_write
Check if owner can write
pub fn owner_can_write(&self) -> bool;Source line: 42.
metadata::PermissionMode::owner_can_exec
Check if owner can execute
pub fn owner_can_exec(&self) -> bool;Source line: 47.
metadata::PermissionMode::group_can_read
Check if group can read
pub fn group_can_read(&self) -> bool;Source line: 52.
metadata::PermissionMode::group_can_write
Check if group can write
pub fn group_can_write(&self) -> bool;Source line: 57.
metadata::PermissionMode::group_can_exec
Check if group can execute
pub fn group_can_exec(&self) -> bool;Source line: 62.
metadata::PermissionMode::other_can_read
Check if others can read
pub fn other_can_read(&self) -> bool;Source line: 67.
metadata::PermissionMode::other_can_write
Check if others can write
pub fn other_can_write(&self) -> bool;Source line: 72.
metadata::PermissionMode::other_can_exec
Check if others can execute
pub fn other_can_exec(&self) -> bool;Source line: 77.