pub struct FileStoreDecl {
pub name: Ident,
pub root: String,
pub read_globs: Vec<String>,
pub write_globs: Vec<String>,
pub provider: Option<Ident>,
pub root_span: Option<SourceSpan>,
pub read_span: Option<SourceSpan>,
pub write_span: Option<SourceSpan>,
pub provider_span: Option<SourceSpan>,
pub span: SourceSpan,
}Expand description
file store <name> { root "<dir>" } (std.files): a capability-scoped file
store identity with a literal root directory. v0 is a local storage boundary.
Fields§
§name: Ident§root: String§read_globs: Vec<String>§write_globs: Vec<String>§provider: Option<Ident>Optional provider <name> clause (std.files v1, spec/std-files.md
“Surface”): the store’s backing provider, defaulting to local when
absent. Unknown providers are rejected at check time.
root_span: Option<SourceSpan>Source spans of each clause keyword (root / the allow of read / write),
so whip fmt can interleave own-line and trailing body comments by position
(the body otherwise rebuilds from the AST, dropping comments).
read_span: Option<SourceSpan>§write_span: Option<SourceSpan>§provider_span: Option<SourceSpan>§span: SourceSpanTrait Implementations§
Source§impl Clone for FileStoreDecl
impl Clone for FileStoreDecl
Source§fn clone(&self) -> FileStoreDecl
fn clone(&self) -> FileStoreDecl
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 FileStoreDecl
impl Debug for FileStoreDecl
impl Eq for FileStoreDecl
Source§impl PartialEq for FileStoreDecl
impl PartialEq for FileStoreDecl
impl StructuralPartialEq for FileStoreDecl
Auto Trait Implementations§
impl Freeze for FileStoreDecl
impl RefUnwindSafe for FileStoreDecl
impl Send for FileStoreDecl
impl Sync for FileStoreDecl
impl Unpin for FileStoreDecl
impl UnsafeUnpin for FileStoreDecl
impl UnwindSafe for FileStoreDecl
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