pub struct InstallSearchHit {
pub provider: InstallProviderId,
pub reference: String,
pub name: String,
pub downloads: Option<i64>,
pub likes: Option<i64>,
pub updated_at: Option<i64>,
}Expand description
A search result: a model the user could install, with its popularity signals.
Fields§
§provider: InstallProviderIdThe provider that would install it.
reference: StringThe reference (repo or tag).
name: StringThe name to show (the last path segment, usually).
downloads: Option<i64>The download count, if reported.
likes: Option<i64>The like count, if reported.
updated_at: Option<i64>When it was last updated, epoch milliseconds.
Implementations§
Trait Implementations§
Source§impl Clone for InstallSearchHit
impl Clone for InstallSearchHit
Source§fn clone(&self) -> InstallSearchHit
fn clone(&self) -> InstallSearchHit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstallSearchHit
impl Debug for InstallSearchHit
impl Eq for InstallSearchHit
Source§impl Hash for InstallSearchHit
impl Hash for InstallSearchHit
Source§impl PartialEq for InstallSearchHit
impl PartialEq for InstallSearchHit
impl StructuralPartialEq for InstallSearchHit
Auto Trait Implementations§
impl Freeze for InstallSearchHit
impl RefUnwindSafe for InstallSearchHit
impl Send for InstallSearchHit
impl Sync for InstallSearchHit
impl Unpin for InstallSearchHit
impl UnsafeUnpin for InstallSearchHit
impl UnwindSafe for InstallSearchHit
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