pub struct LeanWorkerDeclarationSearchRow {
pub name: String,
pub kind: String,
pub module: Option<String>,
pub source: Option<LeanWorkerSourceRange>,
pub match_reason: String,
pub score: i32,
pub rank: usize,
pub flags: LeanWorkerDeclarationFlags,
}Expand description
One bounded metadata row returned by declaration search.
Fields§
§name: String§kind: String§module: Option<String>§source: Option<LeanWorkerSourceRange>§match_reason: String§score: i32§rank: usize§flags: LeanWorkerDeclarationFlagsTrait Implementations§
Source§impl Clone for LeanWorkerDeclarationSearchRow
impl Clone for LeanWorkerDeclarationSearchRow
Source§fn clone(&self) -> LeanWorkerDeclarationSearchRow
fn clone(&self) -> LeanWorkerDeclarationSearchRow
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<'de> Deserialize<'de> for LeanWorkerDeclarationSearchRow
impl<'de> Deserialize<'de> for LeanWorkerDeclarationSearchRow
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerDeclarationSearchRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerDeclarationSearchRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LeanWorkerDeclarationSearchRow
Source§impl PartialEq for LeanWorkerDeclarationSearchRow
impl PartialEq for LeanWorkerDeclarationSearchRow
Source§fn eq(&self, other: &LeanWorkerDeclarationSearchRow) -> bool
fn eq(&self, other: &LeanWorkerDeclarationSearchRow) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LeanWorkerDeclarationSearchRow
impl Serialize for LeanWorkerDeclarationSearchRow
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LeanWorkerDeclarationSearchRow
Auto Trait Implementations§
impl Freeze for LeanWorkerDeclarationSearchRow
impl RefUnwindSafe for LeanWorkerDeclarationSearchRow
impl Send for LeanWorkerDeclarationSearchRow
impl Sync for LeanWorkerDeclarationSearchRow
impl Unpin for LeanWorkerDeclarationSearchRow
impl UnsafeUnpin for LeanWorkerDeclarationSearchRow
impl UnwindSafe for LeanWorkerDeclarationSearchRow
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