pub struct ScopesFile {
pub scopes: Vec<ScopeDefinition>,
pub allow: Vec<String>,
}Expand description
Strictly-parsed scopes.yaml, including the optional allow: key.
Distinct from the private [ScopesConfig] used by load_project_scopes
in two ways: it’s pub (crosses the crate boundary for
omni-dev config scopes lint, issue #1475), and it carries allow — a
list of glob patterns for paths that legitimately belong to no scope.
Fields§
§scopes: Vec<ScopeDefinition>The scope definitions, exactly as written in scopes.yaml.
allow: Vec<String>Glob patterns for paths that need no covering scope.
Trait Implementations§
Source§impl Clone for ScopesFile
impl Clone for ScopesFile
Source§fn clone(&self) -> ScopesFile
fn clone(&self) -> ScopesFile
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 ScopesFile
impl Debug for ScopesFile
Source§impl Default for ScopesFile
impl Default for ScopesFile
Source§fn default() -> ScopesFile
fn default() -> ScopesFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScopesFile
impl<'de> Deserialize<'de> for ScopesFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScopesFile
impl RefUnwindSafe for ScopesFile
impl Send for ScopesFile
impl Sync for ScopesFile
impl Unpin for ScopesFile
impl UnsafeUnpin for ScopesFile
impl UnwindSafe for ScopesFile
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