pub enum ManagerCommands {
List {
col: String,
endpoint: String,
quiet: bool,
verbose: bool,
},
Update {
collection: String,
endpoint: String,
url: String,
headers: Vec<(String, String)>,
body: String,
},
Delete {
collection: String,
endpoint: String,
yes: bool,
},
Copy {
collection: String,
endpoint: String,
to_col: bool,
new_name: String,
},
Col {
name: String,
url: String,
headers: Vec<(String, String)>,
},
Endpoint {
collection: String,
name: String,
path: String,
method: String,
headers: Vec<(String, String)>,
body: String,
},
}Variants§
Implementations§
Source§impl ManagerCommands
impl ManagerCommands
Sourcepub fn get_manager() -> CollectionManager
pub fn get_manager() -> CollectionManager
Get the default collection manager
Sourcepub fn get_endpoint_command(
collection: &str,
endpoint: &str,
) -> Option<RequestCommands>
pub fn get_endpoint_command( collection: &str, endpoint: &str, ) -> Option<RequestCommands>
Get a RequestCommands for running an endpoint from a collection
Trait Implementations§
Source§impl Clone for ManagerCommands
impl Clone for ManagerCommands
Source§fn clone(&self) -> ManagerCommands
fn clone(&self) -> ManagerCommands
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for ManagerCommands
impl Display for ManagerCommands
Source§impl FromArgMatches for ManagerCommands
impl FromArgMatches for ManagerCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for ManagerCommands
impl Subcommand for ManagerCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for ManagerCommands
impl RefUnwindSafe for ManagerCommands
impl Send for ManagerCommands
impl Sync for ManagerCommands
impl Unpin for ManagerCommands
impl UnwindSafe for ManagerCommands
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.