pub(crate) struct SearchEntityInstancesArgs {
pub ty: EntityTypeIdOptions,
pub id: Option<Uuid>,
pub label: Option<String>,
pub properties: Option<Vec<(String, Value)>>,
pub components: Option<Vec<ComponentTypeId>>,
}
Expand description
CLI argument for searching entity instances.
Fields§
§ty: EntityTypeIdOptions
The entity type.
id: Option<Uuid>
The id of the entity instance.
label: Option<String>
The label of the entity instance.
properties: Option<Vec<(String, Value)>>
The properties to search for.
components: Option<Vec<ComponentTypeId>>
The components to search for.
Implementations§
Source§impl SearchEntityInstancesArgs
impl SearchEntityInstancesArgs
pub fn properties(&self) -> PropertyInstances
pub fn components(&self) -> ComponentTypeIds
Trait Implementations§
Source§impl Args for SearchEntityInstancesArgs
impl Args for SearchEntityInstancesArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moreSource§impl Clone for SearchEntityInstancesArgs
impl Clone for SearchEntityInstancesArgs
Source§fn clone(&self) -> SearchEntityInstancesArgs
fn clone(&self) -> SearchEntityInstancesArgs
Returns a copy 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 Debug for SearchEntityInstancesArgs
impl Debug for SearchEntityInstancesArgs
Source§impl From<&SearchEntityInstancesArgs> for SearchEntityInstancesVariables
impl From<&SearchEntityInstancesArgs> for SearchEntityInstancesVariables
Source§fn from(search: &SearchEntityInstancesArgs) -> Self
fn from(search: &SearchEntityInstancesArgs) -> Self
Converts to this type from the input type.
Source§impl FromArgMatches for SearchEntityInstancesArgs
impl FromArgMatches for SearchEntityInstancesArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for SearchEntityInstancesArgs
impl RefUnwindSafe for SearchEntityInstancesArgs
impl Send for SearchEntityInstancesArgs
impl Sync for SearchEntityInstancesArgs
impl Unpin for SearchEntityInstancesArgs
impl UnwindSafe for SearchEntityInstancesArgs
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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