pub struct Config {Show 14 fields
pub chain: Chain,
pub contract: String,
pub events: Vec<String>,
pub abi_path: Option<PathBuf>,
pub block_range: BlockRange,
pub output: OutputConfig,
pub rpc: RpcConfig,
pub etherscan_key: Option<String>,
pub resume: bool,
pub checkpoint_path: PathBuf,
pub verbosity: u8,
pub quiet: bool,
pub raw: bool,
pub auto_from_block: bool,
}Expand description
Main configuration for the log fetcher
Fields§
§chain: ChainChain to query
contract: StringContract address
events: Vec<String>Event filters (names, signatures, or topic hashes). Empty = all events
abi_path: Option<PathBuf>ABI file path (optional)
block_range: BlockRangeBlock range to fetch
output: OutputConfigOutput configuration
rpc: RpcConfigRPC configuration
etherscan_key: Option<String>Etherscan API key (optional)
resume: boolResume from checkpoint
checkpoint_path: PathBufCheckpoint file path
verbosity: u8Verbosity level
quiet: boolQuiet mode (no progress)
raw: boolFetch raw logs without decoding
auto_from_block: boolAuto-detect from_block from contract creation
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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<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