pub struct TypeAwareConfig {
pub enabled: bool,
pub projects: Vec<String>,
pub require: TypeAwareRequire,
}Expand description
Shared opt-in configuration for TypeScript semantic analysis.
Fields§
§enabled: boolEnable the optional TypeScript semantic pass. Disabled by default.
projects: Vec<String>TypeScript project config paths, resolved relative to the project root.
require: TypeAwareRequireDecide whether partial semantic analysis is advisory or gating.
Implementations§
Source§impl TypeAwareConfig
impl TypeAwareConfig
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
True when the section equals its default (disabled, no projects, best-effort), so serialization can omit it.
Trait Implementations§
Source§impl Clone for TypeAwareConfig
impl Clone for TypeAwareConfig
Source§impl Debug for TypeAwareConfig
impl Debug for TypeAwareConfig
Source§impl Default for TypeAwareConfig
impl Default for TypeAwareConfig
Source§impl<'de> Deserialize<'de> for TypeAwareConfig
impl<'de> Deserialize<'de> for TypeAwareConfig
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 TypeAwareConfig
Source§impl JsonSchema for TypeAwareConfig
impl JsonSchema for TypeAwareConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TypeAwareConfig
impl PartialEq for TypeAwareConfig
Source§impl Serialize for TypeAwareConfig
impl Serialize for TypeAwareConfig
impl StructuralPartialEq for TypeAwareConfig
Auto Trait Implementations§
impl Freeze for TypeAwareConfig
impl RefUnwindSafe for TypeAwareConfig
impl Send for TypeAwareConfig
impl Sync for TypeAwareConfig
impl Unpin for TypeAwareConfig
impl UnsafeUnpin for TypeAwareConfig
impl UnwindSafe for TypeAwareConfig
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.