pub struct PackageSearch {Show 23 fields
fmt: ListFormatOpts,
env: WasmerEnv,
owner: Option<String>,
published_by: Option<String>,
curated: Option<bool>,
deployable: Option<bool>,
has_bindings: bool,
has_commands: bool,
standalone: bool,
interfaces: Vec<String>,
license: Option<String>,
min_downloads: Option<i32>,
min_likes: Option<i32>,
min_size: Option<i32>,
created_after: Option<DateTime>,
created_before: Option<DateTime>,
published_after: Option<DateTime>,
published_before: Option<DateTime>,
published_within: Option<PublishedWithin>,
order_by: OrderBy,
sort: Sort,
max: usize,
query: String,
}Expand description
Search for packages in the registry.
Fields§
§fmt: ListFormatOpts§env: WasmerEnv§owner: Option<String>Only show packages owned by this user or namespace.
published_by: Option<String>Only show packages published by this user.
curated: Option<bool>Filter by curated status. --curated for curated only, --curated=false
for non-curated.
deployable: Option<bool>Filter by deployable status. --deployable for deployable only,
--deployable=false for non-deployable.
has_bindings: boolOnly show packages whose latest version has bindings.
has_commands: boolOnly show packages whose latest version has commands.
standalone: boolOnly show standalone packages (implies –has-commands).
interfaces: Vec<String>Only show packages exposing this interface (repeatable).
license: Option<String>Only show packages whose latest version’s license matches (substring).
min_downloads: Option<i32>Only show packages with at least this many downloads.
min_likes: Option<i32>Only show packages with at least this many likes.
min_size: Option<i32>Only show packages whose latest version is at least this many bytes.
created_after: Option<DateTime>Only show packages created on or after this RFC3339 timestamp (e.g. 2024-01-01T00:00:00Z).
created_before: Option<DateTime>Only show packages created on or before this RFC3339 timestamp.
published_after: Option<DateTime>Only show packages last published on or after this RFC3339 timestamp.
published_before: Option<DateTime>Only show packages last published on or before this RFC3339 timestamp.
published_within: Option<PublishedWithin>Only show packages published within the given window.
order_by: OrderByField to order results by.
sort: SortSort direction.
max: usizeMaximum number of results to display.
query: StringThe search query. Leave empty to list all (matching) packages.
Trait Implementations§
Source§impl Args for PackageSearch
impl Args for PackageSearch
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
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
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl AsyncCliCommand for PackageSearch
impl AsyncCliCommand for PackageSearch
Source§impl CommandFactory for PackageSearch
impl CommandFactory for PackageSearch
Source§impl Debug for PackageSearch
impl Debug for PackageSearch
Source§impl FromArgMatches for PackageSearch
impl FromArgMatches for PackageSearch
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>
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>
ArgMatches to self.Source§impl Parser for PackageSearch
impl Parser for PackageSearch
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for PackageSearch
impl RefUnwindSafe for PackageSearch
impl Send for PackageSearch
impl Sync for PackageSearch
impl Unpin for PackageSearch
impl UnwindSafe for PackageSearch
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
§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>
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>
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