pub struct ResetDataArgs {Show 17 fields
pub force: bool,
pub all: bool,
pub database: bool,
pub indexer: bool,
pub rich_indexer: bool,
pub network: bool,
pub network_peer_store: bool,
pub network_secret_key: bool,
pub logs: bool,
pub data_dir: PathBuf,
pub db_path: PathBuf,
pub indexer_path: PathBuf,
pub rich_indexer_path: PathBuf,
pub network_dir: PathBuf,
pub network_peer_store_path: PathBuf,
pub network_secret_key_path: PathBuf,
pub logs_dir: Option<PathBuf>,
}
Expand description
Parsed command line arguments for ckb reset-data
.
Fields§
§force: bool
Reset without asking for user confirmation.
all: bool
Reset all data.
database: bool
Reset database.
indexer: bool
Reset indexer.
rich_indexer: bool
Reset rich-indexer.
network: bool
Reset all network data, including the secret key and peer store.
network_peer_store: bool
Reset network peer store.
network_secret_key: bool
Reset network secret key.
logs: bool
Clean logs directory.
data_dir: PathBuf
The path to the CKB data directory.
db_path: PathBuf
The path to the database directory.
indexer_path: PathBuf
The path to the indexer directory.
rich_indexer_path: PathBuf
The path to the rich-indexer directory.
network_dir: PathBuf
The path to the network data directory.
network_peer_store_path: PathBuf
The path to the network peer store directory.
network_secret_key_path: PathBuf
The path to the network secret key.
logs_dir: Option<PathBuf>
The path to the logs directory.
Auto Trait Implementations§
impl Freeze for ResetDataArgs
impl RefUnwindSafe for ResetDataArgs
impl Send for ResetDataArgs
impl Sync for ResetDataArgs
impl Unpin for ResetDataArgs
impl UnwindSafe for ResetDataArgs
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