pub struct ProjectionPolicy { /* private fields */ }Expand description
A bounded, case-sensitive set of store-relative path rules. Its syntax is
intentionally identical to .sevralocal: blank lines and # comments are
ignored; every other line is one glob with backslash escaping enabled.
Implementations§
Source§impl ProjectionPolicy
impl ProjectionPolicy
Sourcepub fn load(store: &Store, file: &str) -> Result<Self, String>
pub fn load(store: &Store, file: &str) -> Result<Self, String>
Load a required policy file through the store’s no-follow capability.
Sourcepub fn load_manifest(store: &Store, file: &str) -> Result<Self, String>
pub fn load_manifest(store: &Store, file: &str) -> Result<Self, String>
Load a path-confidential projection commitment manifest. The manifest
carries only domain-separated SHA-256 commitments to exact store paths,
so a recovery package need not publish the source .sevralocal rules.
Sourcepub fn from_manifest_bytes(file: &str, bytes: &[u8]) -> Result<Self, String>
pub fn from_manifest_bytes(file: &str, bytes: &[u8]) -> Result<Self, String>
Parse bounded manifest bytes supplied by a trusted higher-level transport (for example stdin from a signed package verifier).
Sourcepub fn excludes_path(&self, path: &str) -> bool
pub fn excludes_path(&self, path: &str) -> bool
True when this exact materialized store path is declared outside the projection.
Sourcepub fn excludes_wiki_coordinate(&self, coordinate: &str) -> bool
pub fn excludes_wiki_coordinate(&self, coordinate: &str) -> bool
Match a structured wiki target, accounting for markdown’s conventional extensionless link coordinate while retaining raw-source paths.
Trait Implementations§
Source§impl Clone for ProjectionPolicy
impl Clone for ProjectionPolicy
Source§fn clone(&self) -> ProjectionPolicy
fn clone(&self) -> ProjectionPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more