pub struct ItemQuery {
pub type_: ItemType,
pub query: String,
pub path: Option<PathBuf>,
}
Expand description
Represents a query for searching items in a crate.
This struct is used to specify the criteria for searching items like structs, enums, traits, etc., within a crate.
Fields§
§type_: ItemType
The type of item to search for.
query: String
The query string used for searching.
path: Option<PathBuf>
Optional path within the crate to narrow down the search scope.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemQuery
impl<'de> Deserialize<'de> for ItemQuery
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 ItemQuery
impl RefUnwindSafe for ItemQuery
impl Send for ItemQuery
impl Sync for ItemQuery
impl Unpin for ItemQuery
impl UnwindSafe for ItemQuery
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