pub struct SemanticAnalysisIdentity {
pub mode: SemanticAnalysisMode,
pub semantic_schema_version: u32,
pub capabilities: Vec<SemanticCapability>,
pub project_config_hash: String,
pub backend_family: String,
pub completeness: SemanticCompleteness,
}Expand description
Compatibility identity for comparing two analysis results.
Fields§
§mode: SemanticAnalysisModeSyntactic or type-aware analysis mode.
semantic_schema_version: u32Version of the semantic result schema, independent of tool versions.
capabilities: Vec<SemanticCapability>Sorted capability set requested for the analysis.
project_config_hash: StringHash of normalized project ownership and compiler configuration.
backend_family: StringBackend family, such as typescript-go.
completeness: SemanticCompletenessCompleteness of the resulting semantic analysis.
Implementations§
Source§impl SemanticAnalysisIdentity
impl SemanticAnalysisIdentity
Sourcepub fn syntactic() -> Self
pub fn syntactic() -> Self
Identity used by legacy and current analyses that did not request the optional TypeScript semantic backend.
Sourcepub fn incompatible_fields(&self, other: &Self) -> Vec<&'static str>
pub fn incompatible_fields(&self, other: &Self) -> Vec<&'static str>
Name the compatibility fields that differ between two stored results. Tool, package, protocol, and exact backend versions are provenance and therefore intentionally excluded.
Trait Implementations§
Source§impl Clone for SemanticAnalysisIdentity
impl Clone for SemanticAnalysisIdentity
Source§impl Debug for SemanticAnalysisIdentity
impl Debug for SemanticAnalysisIdentity
Source§impl Default for SemanticAnalysisIdentity
impl Default for SemanticAnalysisIdentity
Source§impl<'de> Deserialize<'de> for SemanticAnalysisIdentity
impl<'de> Deserialize<'de> for SemanticAnalysisIdentity
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
impl Eq for SemanticAnalysisIdentity
Source§impl PartialEq for SemanticAnalysisIdentity
impl PartialEq for SemanticAnalysisIdentity
Source§impl Serialize for SemanticAnalysisIdentity
impl Serialize for SemanticAnalysisIdentity
impl StructuralPartialEq for SemanticAnalysisIdentity
Auto Trait Implementations§
impl Freeze for SemanticAnalysisIdentity
impl RefUnwindSafe for SemanticAnalysisIdentity
impl Send for SemanticAnalysisIdentity
impl Sync for SemanticAnalysisIdentity
impl Unpin for SemanticAnalysisIdentity
impl UnsafeUnpin for SemanticAnalysisIdentity
impl UnwindSafe for SemanticAnalysisIdentity
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.