pub struct PurgeChainCmd {
    pub base: PurgeChainCmd,
    pub parachain: bool,
    pub relaychain: bool,
}
Expand description

The purge-chain command used to remove the whole chain: the parachain and the relay chain.

Fields§

§base: PurgeChainCmd

The base struct of the purge-chain command.

§parachain: bool

Only delete the para chain database

§relaychain: bool

Only delete the relay chain database

Implementations§

Run the purge command

Trait Implementations§

Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Get the SharedParams for this object
Get the DatabaseParams for this object
Get the ImportParams for this object
Get the PruningParams for this object
Get the KeystoreParams for this object
Get the NetworkParams for this object
Get a reference to OffchainWorkerParams for this object.
Get the NodeKeyParams for this object
Get the base path of the configuration (if any) Read more
Returns true if the node is for development or not Read more
Gets the role Read more
Get the transaction pool options Read more
Get the network configuration Read more
Get the keystore configuration. Read more
Get the database cache size. Read more
Get the database backend variant. Read more
Get the database configuration object for the parameters provided
Get the trie cache maximum size. Read more
Get the state pruning mode. Read more
Get the block pruning mode. Read more
Get the chain ID (string). Read more
Get the name of the node. Read more
Get the WASM execution method. Read more
Get the path where WASM overrides live. Read more
Get the execution strategies. Read more
Get the RPC HTTP address (None if disabled). Read more
Get the RPC IPC path (None if disabled). Read more
Get the RPC websocket address (None if disabled). Read more
Returns the RPC method set to expose. Read more
Get the RPC websockets maximum connections (None if unlimited). Read more
Get the RPC cors (None if disabled) Read more
Get maximum RPC payload.
Get maximum RPC request payload size.
Get maximum RPC response payload size.
Get maximum number of subscriptions per connection.
Get maximum WS output buffer capacity.
Get the prometheus configuration (None if disabled) Read more
Get the telemetry endpoints (if any) Read more
Get the default value for heap pages Read more
Returns an offchain worker config wrapped in Ok(_) Read more
Returns Ok(true) if authoring should be forced Read more
Returns Ok(true) if grandpa should be disabled Read more
Get the development key seed from the current object Read more
Get the tracing targets from the current object (if any) Read more
Get the TracingReceiver value from the current object Read more
Get the node key from the current object Read more
Get maximum runtime instances Read more
Get maximum different runtimes in cache Read more
Activate or not the automatic announcing of blocks after import Read more
Create a Configuration object from the current object
Get the filters for the logging. Read more
Should the detailed log output be enabled.
Is log reloading enabled?
Should the log color output be disabled?
Initialize substrate. This must be done only once per process. Read more
👎Deprecated since 3.1.0: Replaced with `CommandFactory::command
Deprecated, replaced with CommandFactory::command
👎Deprecated since 3.1.0: Replaced with `CommandFactory::command_for_update
Deprecated, replaced with CommandFactory::command_for_update
Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Convert from a value of T into an equivalent instance of Option<Self>. Read more
Consume self to return Some equivalent value of Option<T>. Read more
Converts self into T using Into<T>. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more
Causes self to use its Binary implementation when Debug-formatted. Read more
Causes self to use its Display implementation when Debug-formatted. Read more
Causes self to use its LowerExp implementation when Debug-formatted. Read more
Causes self to use its LowerHex implementation when Debug-formatted. Read more
Causes self to use its Octal implementation when Debug-formatted. Read more
Causes self to use its Pointer implementation when Debug-formatted. Read more
Causes self to use its UpperExp implementation when Debug-formatted. Read more
Causes self to use its UpperHex implementation when Debug-formatted. Read more
Formats each item in a sequence. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

Pipes by value. This is generally the method you want to use. Read more
Borrows self and passes that borrow into the pipe function. Read more
Mutably borrows self and passes that borrow into the pipe function. Read more
Borrows self, then passes self.borrow() into the pipe function. Read more
Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Borrows self, then passes self.as_ref() into the pipe function.
Mutably borrows self, then passes self.as_mut() into the pipe function. Read more
Borrows self, then passes self.deref() into the pipe function.
Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
Convert from a value of T into an equivalent instance of Self. Read more
Consume self to return an equivalent value of T. Read more
Immutable access to a value. Read more
Mutable access to a value. Read more
Immutable access to the Borrow<B> of a value. Read more
Mutable access to the BorrowMut<B> of a value. Read more
Immutable access to the AsRef<R> view of a value. Read more
Mutable access to the AsMut<R> view of a value. Read more
Immutable access to the Deref::Target of a value. Read more
Mutable access to the Deref::Target of a value. Read more
Calls .tap() only in debug builds, and is erased in release builds.
Calls .tap_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more
Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_ref() only in debug builds, and is erased in release builds. Read more
Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_deref() only in debug builds, and is erased in release builds. Read more
Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more
Attempts to convert self into T using TryInto<T>. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more