pub struct SchemaMeta {
pub id: Option<String>,
pub type_const: Option<String>,
pub globs: Vec<String>,
pub asset_globs: Vec<String>,
pub uses: Vec<String>,
pub body_line: usize,
pub archived: Archived,
}Expand description
SchemaMeta holds what the store keeps about a schema file that the
run doesn’t read: enough to dispatch on the schema, match its globs, and
identify it. The run reads the file only when a check needs the compiled
schema (CACHE-1_AC-25).
Fields§
§id: Option<String>The id value.
type_const: Option<String>The type const, when the schema declares a type.
globs: Vec<String>The additional-files globs.
asset_globs: Vec<String>The asset-files globs.
uses: Vec<String>The names, such as t:<type> and f:<format>, that the schema refers
to in the registry.
body_line: usizeThe line where the body starts. A finding about the whole schema reports this line.
archived: ArchivedThe archived value, which says which documents of the type are
archived.
Trait Implementations§
Source§impl Clone for SchemaMeta
impl Clone for SchemaMeta
Source§impl Debug for SchemaMeta
impl Debug for SchemaMeta
impl Eq for SchemaMeta
Source§impl PartialEq for SchemaMeta
impl PartialEq for SchemaMeta
impl StructuralPartialEq for SchemaMeta
Auto Trait Implementations§
impl Forget for SchemaMeta
impl Freeze for SchemaMeta
impl Move for SchemaMeta
impl RefUnwindSafe for SchemaMeta
impl Send for SchemaMeta
impl Sync for SchemaMeta
impl Unpin for SchemaMeta
impl UnsafeUnpin for SchemaMeta
impl UnwindSafe for SchemaMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.