pub struct Command {
pub name: Option<SchemaName>,
pub item: Option<CollectionOrView>,
}
Expand description
A schema query against a storage instance.
Fields§
§name: Option<SchemaName>
The name of the schema to query.
item: Option<CollectionOrView>
The item in the schema to query.
Implementations§
§impl Command
impl Command
pub fn execute<SC>(self, storage: &SC) -> Result<(), Error>where
SC: StorageConnection,
pub fn execute<SC>(self, storage: &SC) -> Result<(), Error>where SC: StorageConnection,
Executes the command on storage
.
pub async fn execute_async<SC>(
self,
storage: &SC
) -> impl Future<Output = Result<(), Error>>where
SC: AsyncStorageConnection,
pub async fn execute_async<SC>( self, storage: &SC ) -> impl Future<Output = Result<(), Error>>where SC: AsyncStorageConnection,
Executes the command on storage
.
Trait Implementations§
§impl Args for Command
impl Args for Command
§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of arguments§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
§impl FromArgMatches for Command
impl FromArgMatches for Command
§fn from_arg_matches(
__clap_arg_matches: &ArgMatches
) -> Result<Command, Error<RichFormatter>>
fn from_arg_matches( __clap_arg_matches: &ArgMatches ) -> Result<Command, Error<RichFormatter>>
§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Command, Error<RichFormatter>>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Command, Error<RichFormatter>>
§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error<RichFormatter>>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error<RichFormatter>>
Assign values from
ArgMatches
to self
.§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error<RichFormatter>>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error<RichFormatter>>
Assign values from
ArgMatches
to self
.§impl Parser for Command
impl Parser for Command
§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os()
, return Err on error.§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations§
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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