pub struct AuditArgs {Show 23 fields
pub shared: SharedFlags,
pub full: bool,
pub quick: bool,
pub summary: bool,
pub ai: bool,
pub ai_provider: String,
pub ai_model: String,
pub ai_api_key: Option<String>,
pub ollama_endpoint: Option<String>,
pub ai_full: bool,
pub exploit: bool,
pub gas: bool,
pub all_chains: bool,
pub max_parallel_chains: usize,
pub sources: String,
pub exclude: Option<String>,
pub template: Option<String>,
pub list_templates: bool,
pub suppressions: Option<PathBuf>,
pub show_suppressed: bool,
pub generate_suppressions: bool,
pub notify: bool,
pub enable_history: bool,
}Fields§
§full: boolRun all available checks
quick: boolQuick mode — skip parser-heavy and expensive checks for fast results
summary: boolShow executive summary instead of full terminal report
ai: boolEnable AI-powered auditing (uses configured LLM provider)
ai_provider: StringAI provider: openai, claude, or ollama
ai_model: StringAI model identifier (e.g. gpt-5, claude-5-sonnet-20260701)
ai_api_key: Option<String>AI API key (reads OPENAI_API_KEY or ANTHROPIC_API_KEY env var when empty)
ollama_endpoint: Option<String>Ollama endpoint URL (default: http://localhost:11434)
ai_full: boolRun a full AI audit (security + gas + logic auditors)
exploit: boolInclude exploit path analysis
gas: boolInclude gas analysis
all_chains: boolAudit all supported chains
max_parallel_chains: usizeMaximum number of chains to audit concurrently when –all-chains is set
sources: StringSource directories to audit (comma-separated)
exclude: Option<String>Exclude patterns (comma-separated)
template: Option<String>Audit template to use (erc20, erc721, defi, bridge, upgradeable)
list_templates: boolList available audit templates
suppressions: Option<PathBuf>Path to a suppression file (default: .forge-guard-suppressions)
show_suppressed: boolShow suppressed findings (visually marked) instead of hiding them
generate_suppressions: boolGenerate a suppression file from current findings and exit
notify: boolSend webhook notifications after the audit (see [notifications] config)
enable_history: boolPersist this audit in the local SQLite history database for trend tracking (see [history] config; also enabled via [history].enabled)
Trait Implementations§
Source§impl Args for AuditArgs
impl Args for AuditArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for AuditArgs
impl FromArgMatches for AuditArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for AuditArgs
impl RefUnwindSafe for AuditArgs
impl Send for AuditArgs
impl Sync for AuditArgs
impl Unpin for AuditArgs
impl UnsafeUnpin for AuditArgs
impl UnwindSafe for AuditArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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> ⓘ
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