pub struct ConfigBuilder { /* private fields */ }Expand description
Builder for Config
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
pub fn new() -> Self
pub fn chain(self, chain: Chain) -> Self
pub fn contract(self, address: impl Into<String>) -> Self
pub fn event(self, signature: impl Into<String>) -> Self
pub fn events(self, signatures: Vec<String>) -> Self
pub fn abi_path(self, path: impl Into<PathBuf>) -> Self
pub fn from_block(self, block: u64) -> Self
pub fn to_block(self, block: BlockNumber) -> Self
pub fn to_block_number(self, block: u64) -> Self
pub fn to_latest(self) -> Self
pub fn output_path(self, path: impl Into<PathBuf>) -> Self
pub fn output_format(self, format: OutputFormat) -> Self
pub fn concurrency(self, n: usize) -> Self
pub fn timeout(self, secs: u64) -> Self
pub fn etherscan_key(self, key: impl Into<String>) -> Self
pub fn resume(self, resume: bool) -> Self
pub fn checkpoint_path(self, path: impl Into<PathBuf>) -> Self
pub fn verbosity(self, level: u8) -> Self
pub fn quiet(self, quiet: bool) -> Self
pub fn raw(self, raw: bool) -> Self
pub fn auto_from_block(self, auto: bool) -> Self
pub fn rpc_config(self, rpc: RpcConfig) -> Self
pub fn build(self) -> Result<Config>
Trait Implementations§
Source§impl Debug for ConfigBuilder
impl Debug for ConfigBuilder
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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> 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