Skip to main content

FactPayload

Enum FactPayload 

Source
pub enum FactPayload {
Show 28 variants Declaration { decl: DeclId, logical_id: String, }, Reference { from_decl: DeclId, to_logical_id: String, }, DependencyEdge { from_logical_id: String, to_logical_id: String, edge_kind: String, }, DynamicSqlEvidence { site: String, }, DbLinkReference { object: String, db_link: String, }, Opacity { target_logical_id: String, reason: String, }, ResolutionReport { reference: String, strategy: String, }, Privilege { grantee: String, privilege: String, on: String, }, ConstantValue { unit_logical_id: String, name: String, value: ConstantValue, }, ValueSet { unit_logical_id: String, name: String, value_set: ValueSet, }, StringShape { unit_logical_id: String, name: String, shape: StringShape, }, Taint { unit_logical_id: String, name: String, kinds: Vec<TaintKind>, }, Sanitizer { unit_logical_id: String, name: String, cleansed_by: Vec<TaintCleanser>, }, ExceptionHandler { unit_logical_id: String, scope: String, body_class: String, }, CursorForLoop { unit_logical_id: String, loop_var: String, has_body_dml: bool, }, MissingInstrumentation { unit_logical_id: String, }, HardcodedCredential { unit_logical_id: String, marker: String, }, InvokerRights { unit_logical_id: String, }, RefCursorReturn { unit_logical_id: String, }, DmlInFunction { unit_logical_id: String, }, UnboundedBulkCollect { unit_logical_id: String, }, DeprecatedFeature { unit_logical_id: String, feature: String, }, DeterministicMisuse { unit_logical_id: String, construct: String, }, MutatingTableTrigger { unit_logical_id: String, table: String, }, LogWithoutReraise { unit_logical_id: String, }, CrossSchemaWrite { unit_logical_id: String, target: String, }, SensitivePublicSynonym { unit_logical_id: String, synonym: String, target: String, }, IsNullOnIndexedColumn { unit_logical_id: String, column: String, },
}
Expand description

Discriminated payload — one variant per FactKind. The per-family types are intentionally lightweight; consumers that need richer detail re-fetch from the originating crate’s model (e.g. lineage’s LineageResult).

Variants§

§

Declaration

Fields

§decl: DeclId
§logical_id: String
§

Reference

Fields

§from_decl: DeclId
§to_logical_id: String
§

DependencyEdge

Fields

§from_logical_id: String
§to_logical_id: String
§edge_kind: String
§

DynamicSqlEvidence

Fields

§site: String
§

DbLinkReference

Fields

§object: String
§db_link: String
§

Opacity

Fields

§target_logical_id: String
§reason: String
§

ResolutionReport

Fields

§reference: String
§strategy: String
§

Privilege

Fields

§grantee: String
§privilege: String
§

ConstantValue

A variable/expression with a compile-time constant value in the flow lattice. name is normalized to the analyzer’s semantic identifier for that value inside unit_logical_id.

Fields

§unit_logical_id: String
§name: String
§

ValueSet

A variable/expression whose possible values are bounded by the flow lattice. ValueSet::Top is intentionally not emitted: absence of this fact means “unbounded/unmeasured”, not safety.

Fields

§unit_logical_id: String
§name: String
§value_set: ValueSet
§

StringShape

The string-shape abstraction for a variable/expression. SAST and lineage can consume this without re-walking the raw expression tree.

Fields

§unit_logical_id: String
§name: String
§

Taint

Live taint kinds flowing into a variable/expression.

Fields

§unit_logical_id: String
§name: String
§

Sanitizer

Sanitizers observed in a value’s derivation. This is evidence for reports; it is never proof of safety by itself.

Fields

§unit_logical_id: String
§name: String
§cleansed_by: Vec<TaintCleanser>
§

ExceptionHandler

An EXCEPTION WHEN ... THEN ... handler. scope is the caught condition (others or a named exception); body_class classifies the handler body so syntactic rules can decide without re-parsing: noop (only NULL; — QUAL001 swallowed exception), commit / rollback (QUAL004 transaction control in a handler), or other.

Fields

§unit_logical_id: String
§scope: String
§body_class: String
§

CursorForLoop

A cursor FOR loop (FOR <var> IN (<query>|<cursor>) LOOP … END LOOP;). has_body_dml is true when the loop body contains a row-level INSERT/UPDATE/DELETE/MERGE — PERF001 flags any cursor-FOR-loop as a bulk-collect candidate; PERF002 flags the has_body_dml subset as a FORALL candidate. Conservative (R13): an ambiguous shape yields no fact rather than a wrong one.

Fields

§unit_logical_id: String
§loop_var: String
§has_body_dml: bool
§

MissingInstrumentation

A routine body in which no recognized instrumentation call (logging / tracing / audit) was found. STYLE001 (opt-in, per house policy) decides whether that is a finding; the fact only reports the absence, never asserts a violation.

Fields

§unit_logical_id: String
§

HardcodedCredential

A string literal that is, by strong syntactic context, a hardcoded secret (IDENTIFIED BY '…', an assignment to a password/secret/token-named target, or a password => '…' named argument). marker records the matched context so SEC003 can explain the finding. Conservative (R13): only emitted when a literal directly follows a credential marker.

Fields

§unit_logical_id: String
§marker: String
§

InvokerRights

The unit declares AUTHID CURRENT_USER (invoker’s rights). Resolution of privileges is deferred to call time, which widens the trust surface — SEC004 flags it for review (it is frequently intentional, so the rule is advisory, not a hard defect).

Fields

§unit_logical_id: String
§

RefCursorReturn

A function whose RETURN type is a REF CURSOR (SYS_REFCURSOR / REF CURSOR). Hands an open cursor to the caller — a resource-ownership and (when the cursor wrapped dynamic SQL) injection-amplification concern. SEC007.

Fields

§unit_logical_id: String
§

DmlInFunction

A FUNCTION whose body performs row-level DML (INSERT/UPDATE/DELETE/MERGE). Side-effecting functions break purity, are unsafe in SQL/parallel/replication contexts, and surprise callers. QUAL007.

Fields

§unit_logical_id: String
§

UnboundedBulkCollect

A BULK COLLECT INTO with no LIMIT in the same statement — the entire result set is materialized into PGA memory unbounded. QUAL003.

Fields

§unit_logical_id: String
§

DeprecatedFeature

A well-known deprecated / legacy construct (feature names the match: dbms_job, legacy (+) outer join, … work transaction-control keyword). QUAL005.

Fields

§unit_logical_id: String
§feature: String
§

DeterministicMisuse

A function marked DETERMINISTIC whose body contains a non-deterministic construct (DML, query, SYSDATE/ SYSTIMESTAMP, DBMS_RANDOM, sequence .NEXTVAL). QUAL008.

Fields

§unit_logical_id: String
§construct: String
§

MutatingTableTrigger

A row-level (FOR EACH ROW) trigger whose body references its own base table in a query/DML — ORA-04091 mutating- table hazard. QUAL006.

Fields

§unit_logical_id: String
§table: String
§

LogWithoutReraise

An exception handler that logs (or otherwise instruments) but neither re-raises nor signals, silently continuing — the failure is recorded yet swallowed. QUAL002.

Fields

§unit_logical_id: String
§

CrossSchemaWrite

A DML statement whose target object is schema-qualified to a schema other than the unit’s own — a cross-schema write surface. target is schema.object. DEP001.

Fields

§unit_logical_id: String
§target: String
§

SensitivePublicSynonym

A CREATE PUBLIC SYNONYM whose synonym or target name matches a sensitivity heuristic (credential/PII/finance). Public synonyms are visible to every account, so exposing a sensitive object through one widens its reach. SEC005.

Fields

§unit_logical_id: String
§synonym: String
§target: String
§

IsNullOnIndexedColumn

A <col> IS NULL predicate on a column that the same analyzed source declares an index on (CREATE INDEX … (col …)). A B-tree index does not store all-NULL keys, so the predicate cannot use that index — a silent full-scan. PERF003. (Catalog-only indexes are out of this source-level scope.)

Fields

§unit_logical_id: String
§column: String

Implementations§

Source§

impl FactPayload

Source

pub fn kind(&self) -> FactKind

Discriminate the family without matching the full enum.

Trait Implementations§

Source§

impl Clone for FactPayload

Source§

fn clone(&self) -> FactPayload

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FactPayload

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FactPayload

Source§

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 Eq for FactPayload

Source§

impl PartialEq for FactPayload

Source§

fn eq(&self, other: &FactPayload) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for FactPayload

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for FactPayload

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, _span: NoopSpan) -> Self

Instruments this future with a span (no-op when disabled).
Source§

fn in_current_span(self) -> Self

Instruments this future with the current span (no-op when disabled).
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> JsonExportable for T

Source§

fn to_json_value(&self) -> Result<Value, Error>

Source§

fn from_json_value(value: Value) -> Result<Self, Error>
where Self: Sized,

Source§

impl<D> OwoColorize for D

Source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
Source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
Source§

fn black(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
Source§

fn on_black(&self) -> BgColorDisplay<'_, Black, Self>

Change the background color to black
Source§

fn red(&self) -> FgColorDisplay<'_, Red, Self>

Change the foreground color to red
Source§

fn on_red(&self) -> BgColorDisplay<'_, Red, Self>

Change the background color to red
Source§

fn green(&self) -> FgColorDisplay<'_, Green, Self>

Change the foreground color to green
Source§

fn on_green(&self) -> BgColorDisplay<'_, Green, Self>

Change the background color to green
Source§

fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>

Change the foreground color to yellow
Source§

fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>

Change the background color to yellow
Source§

fn blue(&self) -> FgColorDisplay<'_, Blue, Self>

Change the foreground color to blue
Source§

fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>

Change the background color to blue
Source§

fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to magenta
Source§

fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to magenta
Source§

fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to purple
Source§

fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to purple
Source§

fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>

Change the foreground color to cyan
Source§

fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>

Change the background color to cyan
Source§

fn white(&self) -> FgColorDisplay<'_, White, Self>

Change the foreground color to white
Source§

fn on_white(&self) -> BgColorDisplay<'_, White, Self>

Change the background color to white
Source§

fn default_color(&self) -> FgColorDisplay<'_, Default, Self>

Change the foreground color to the terminal default
Source§

fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>

Change the background color to the terminal default
Source§

fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>

Change the foreground color to bright black
Source§

fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>

Change the background color to bright black
Source§

fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>

Change the foreground color to bright red
Source§

fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>

Change the background color to bright red
Source§

fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>

Change the foreground color to bright green
Source§

fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>

Change the background color to bright green
Source§

fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>

Change the foreground color to bright yellow
Source§

fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>

Change the background color to bright yellow
Source§

fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>

Change the foreground color to bright blue
Source§

fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>

Change the background color to bright blue
Source§

fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright magenta
Source§

fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright magenta
Source§

fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright purple
Source§

fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright purple
Source§

fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>

Change the foreground color to bright cyan
Source§

fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>

Change the background color to bright cyan
Source§

fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>

Change the foreground color to bright white
Source§

fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>

Change the background color to bright white
Source§

fn bold(&self) -> BoldDisplay<'_, Self>

Make the text bold
Source§

fn dimmed(&self) -> DimDisplay<'_, Self>

Make the text dim
Source§

fn italic(&self) -> ItalicDisplay<'_, Self>

Make the text italicized
Source§

fn underline(&self) -> UnderlineDisplay<'_, Self>

Make the text underlined
Make the text blink
Make the text blink (but fast!)
Source§

fn reversed(&self) -> ReversedDisplay<'_, Self>

Swap the foreground and background colors
Source§

fn hidden(&self) -> HiddenDisplay<'_, Self>

Hide the text
Source§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>

Cross out the text
Source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
Source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
Source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
Source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
Source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
Source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
Source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more