pub struct FileContext {
pub path: PathBuf,
pub source: String,
pub statements: Vec<Statement>,
pub parse_errors: Vec<String>,
}Expand description
All information a Rule needs to check one file.
Fields§
§path: PathBuf§source: String§statements: Vec<Statement>Parsed SQL statements. Empty if the file could not be parsed.
parse_errors: Vec<String>Parse error messages, if parsing failed.
Implementations§
Auto Trait Implementations§
impl Freeze for FileContext
impl RefUnwindSafe for FileContext
impl Send for FileContext
impl Sync for FileContext
impl Unpin for FileContext
impl UnsafeUnpin for FileContext
impl UnwindSafe for FileContext
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