#[non_exhaustive]pub struct SearchHit {
pub id: String,
pub downloads: u64,
pub likes: u64,
pub gated: bool,
pub pipeline_tag: Option<String>,
pub last_modified: Option<String>,
}Expand description
One repo in Hub::search results.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Stringowner/name.
downloads: u64§likes: u64§gated: boolThe repo needs an accepted licence and a token (auto or manual approval on the Hub).
pipeline_tag: Option<String>§last_modified: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for SearchHit
impl<'de> Deserialize<'de> for SearchHit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SearchHit
impl StructuralPartialEq for SearchHit
Auto Trait Implementations§
impl Forget for SearchHit
impl Freeze for SearchHit
impl Move for SearchHit
impl RefUnwindSafe for SearchHit
impl Send for SearchHit
impl Sync for SearchHit
impl Unpin for SearchHit
impl UnsafeUnpin for SearchHit
impl UnwindSafe for SearchHit
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