pub struct CodeQLExtractor {
pub path: PathBuf,
pub name: String,
pub display_name: String,
pub version: String,
pub build_modes: Vec<String>,
pub column_kind: Option<String>,
pub legacy_qltest_extraction: Option<bool>,
pub github_api_languages: Option<Vec<String>>,
pub scc_languages: Option<Vec<String>>,
pub file_types: Vec<CodeQLExtractorFileType>,
}
Expand description
CodeQL Extractor
use ghastoolkit::codeql::CodeQLExtractor;
let extractor = CodeQLExtractor::load(r#"
name: "rust"
display_name: "Rust"
version: 0.1.0
column_kind: "utf8"
legacy_qltest_extraction: true
github_api_languages:
- Rust
scc_languages:
- Rust
file_types:
- name: rust
display_name: Rust
extensions:
- rs
"#).unwrap();
Fields§
§path: PathBuf
Root Directory of the extractor-pack
name: String
The name of the extractor
display_name: String
The display name of the extractor
version: String
The version of the extractor
build_modes: Vec<String>
The build modes
column_kind: Option<String>
Column kind
legacy_qltest_extraction: Option<bool>
Legacy QLTest extraction
github_api_languages: Option<Vec<String>>
GitHub API languages
scc_languages: Option<Vec<String>>
SCC languages
file_types: Vec<CodeQLExtractorFileType>
File types
Implementations§
Trait Implementations§
Source§impl Clone for CodeQLExtractor
impl Clone for CodeQLExtractor
Source§fn clone(&self) -> CodeQLExtractor
fn clone(&self) -> CodeQLExtractor
Returns a duplicate of the value. Read more
1.0.0 · 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 CodeQLExtractor
impl Debug for CodeQLExtractor
Source§impl Default for CodeQLExtractor
impl Default for CodeQLExtractor
Source§fn default() -> CodeQLExtractor
fn default() -> CodeQLExtractor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodeQLExtractor
impl<'de> Deserialize<'de> for CodeQLExtractor
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
Source§impl Hash for CodeQLExtractor
impl Hash for CodeQLExtractor
Source§impl Ord for CodeQLExtractor
impl Ord for CodeQLExtractor
Source§fn cmp(&self, other: &CodeQLExtractor) -> Ordering
fn cmp(&self, other: &CodeQLExtractor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CodeQLExtractor
impl PartialEq for CodeQLExtractor
Source§impl PartialOrd for CodeQLExtractor
impl PartialOrd for CodeQLExtractor
Source§impl Serialize for CodeQLExtractor
impl Serialize for CodeQLExtractor
Source§impl TryFrom<PathBuf> for CodeQLExtractor
impl TryFrom<PathBuf> for CodeQLExtractor
impl Eq for CodeQLExtractor
impl StructuralPartialEq for CodeQLExtractor
Auto Trait Implementations§
impl Freeze for CodeQLExtractor
impl RefUnwindSafe for CodeQLExtractor
impl Send for CodeQLExtractor
impl Sync for CodeQLExtractor
impl Unpin for CodeQLExtractor
impl UnwindSafe for CodeQLExtractor
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more