pub struct IrFileStore {
pub name: String,
pub root: String,
pub read_globs: Vec<String>,
pub write_globs: Vec<String>,
pub provider: Option<String>,
}Expand description
A lowered file store declaration (std.files): the store identity + its
literal local root directory, consumed by the runtime file provider.
Fields§
§name: String§root: String§read_globs: Vec<String>Path globs (relative to root) a read may touch; empty = any path
inside the root (mounting the root is the read consent). Enforced at
runtime in addition to root-containment.
write_globs: Vec<String>Path globs a write may touch. S4: stores are READ-ONLY by default —
empty means writes are DENIED (checked at compile time and enforced
fail-closed at runtime); declaring allow write [...] permits and
bounds them.
provider: Option<String>Declared provider <name> clause; None = the default local
provider (spec/std-files.md “Providers”). Serialized to the snapshot
only when declared, so provider-less stores keep their prior .ir.
Trait Implementations§
Source§impl Clone for IrFileStore
impl Clone for IrFileStore
Source§fn clone(&self) -> IrFileStore
fn clone(&self) -> IrFileStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IrFileStore
impl Debug for IrFileStore
impl Eq for IrFileStore
Source§impl PartialEq for IrFileStore
impl PartialEq for IrFileStore
impl StructuralPartialEq for IrFileStore
Auto Trait Implementations§
impl Freeze for IrFileStore
impl RefUnwindSafe for IrFileStore
impl Send for IrFileStore
impl Sync for IrFileStore
impl Unpin for IrFileStore
impl UnsafeUnpin for IrFileStore
impl UnwindSafe for IrFileStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more