pub struct StatsArgs {
pub config: Box<CKBAppConfig>,
pub consensus: Consensus,
pub from: Option<u64>,
pub to: Option<u64>,
}
Expand description
Parsed command line arguments for ckb stats
.
Fields§
§config: Box<CKBAppConfig>
Parsed ckb.toml
.
consensus: Consensus
Loaded consensus.
from: Option<u64>
Specifies the starting block number. The default is 1.
to: Option<u64>
Specifies the ending block number. The default is the tip block in the database.
Auto Trait Implementations§
impl !Freeze for StatsArgs
impl RefUnwindSafe for StatsArgs
impl Send for StatsArgs
impl Sync for StatsArgs
impl Unpin for StatsArgs
impl UnwindSafe for StatsArgs
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> 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