pub struct LibrarySearchResult {
pub id: String,
pub title: String,
pub description: Option<String>,
pub trust_score: Option<f64>,
pub stars: Option<i64>,
pub total_snippets: Option<u64>,
pub total_tokens: Option<u64>,
pub verified: Option<bool>,
pub branch: Option<String>,
pub state: Option<String>,
}Expand description
Represents a single library entry returned by the search endpoint.
Fields§
§id: StringUnique library identifier (e.g. /facebook/react).
title: StringHuman-readable library title.
description: Option<String>Optional short description of the library.
trust_score: Option<f64>Relevance/trust score returned by the API, if available.
stars: Option<i64>Number of GitHub stars, if available. The API returns -1 when unavailable.
total_snippets: Option<u64>Total number of documentation snippets indexed.
total_tokens: Option<u64>Total number of tokens indexed.
verified: Option<bool>Whether the library has been verified by the Context7 team.
branch: Option<String>Git branch used for indexing.
state: Option<String>Indexing state (e.g. “active”, “pending”).
Trait Implementations§
Source§impl Debug for LibrarySearchResult
impl Debug for LibrarySearchResult
Source§impl<'de> Deserialize<'de> for LibrarySearchResult
impl<'de> Deserialize<'de> for LibrarySearchResult
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
Auto Trait Implementations§
impl Freeze for LibrarySearchResult
impl RefUnwindSafe for LibrarySearchResult
impl Send for LibrarySearchResult
impl Sync for LibrarySearchResult
impl Unpin for LibrarySearchResult
impl UnsafeUnpin for LibrarySearchResult
impl UnwindSafe for LibrarySearchResult
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