Enum mentat_cli::command_parser::Command
[−]
[src]
pub enum Command { Cache(String, CacheDirection), Close, Exit, Help(Vec<String>), Import(String), Open(String), OpenEmpty(String), OpenEncrypted(String, String), OpenEmptyEncrypted(String, String), Query(String), QueryExplain(String), QueryPrepared(String), Schema, Sync(Vec<String>), Timer(bool), Transact(String), }
Variants
Cache(String, CacheDirection)
Close
Exit
Help(Vec<String>)
Import(String)
Open(String)
OpenEmpty(String)
OpenEncrypted(String, String)
OpenEmptyEncrypted(String, String)
Query(String)
QueryExplain(String)
QueryPrepared(String)
Schema
Sync(Vec<String>)
Timer(bool)
Transact(String)
Methods
impl Command
[src]
impl Command
pub fn is_complete(&self) -> bool
[src]
pub fn is_complete(&self) -> bool
is_complete returns true if no more input is required for the command to be successfully executed. false is returned if the command is not considered valid. Defaults to true for all commands except Query and Transact. TODO: for query and transact commands, they will be considered complete if a parsable EDN has been entered as an argument
pub fn is_timed(&self) -> bool
[src]
pub fn is_timed(&self) -> bool
pub fn output(&self) -> String
[src]
pub fn output(&self) -> String
Trait Implementations
impl Clone for Command
[src]
impl Clone for Command
fn clone(&self) -> Command
[src]
fn clone(&self) -> Command
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Command
[src]
impl Debug for Command
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Command
[src]
impl Eq for Command
impl PartialEq for Command
[src]
impl PartialEq for Command