pub struct LeanWorkerDeclarationRow {
pub name: String,
pub kind: String,
pub type_signature: Option<String>,
pub source: Option<LeanWorkerSourceRange>,
}Expand description
One declaration row returned by LeanWorkerSession::describe or
LeanWorkerSession::describe_bulk.
kind is the literal string LeanSession::declaration_kind returns
("axiom", "definition", "theorem", …, or "missing" for an absent
name). The describe_bulk path preserves the slot for absent names by
keeping kind == "missing" with type_signature: None and source: None
so the response length matches the input length.
Fields§
§name: String§kind: String§type_signature: Option<String>§source: Option<LeanWorkerSourceRange>Trait Implementations§
Source§impl Clone for LeanWorkerDeclarationRow
impl Clone for LeanWorkerDeclarationRow
Source§fn clone(&self) -> LeanWorkerDeclarationRow
fn clone(&self) -> LeanWorkerDeclarationRow
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 LeanWorkerDeclarationRow
impl Debug for LeanWorkerDeclarationRow
Source§impl<'de> Deserialize<'de> for LeanWorkerDeclarationRow
impl<'de> Deserialize<'de> for LeanWorkerDeclarationRow
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerDeclarationRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerDeclarationRow, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LeanWorkerDeclarationRow
Source§impl PartialEq for LeanWorkerDeclarationRow
impl PartialEq for LeanWorkerDeclarationRow
Source§impl Serialize for LeanWorkerDeclarationRow
impl Serialize for LeanWorkerDeclarationRow
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 LeanWorkerDeclarationRow
Auto Trait Implementations§
impl Freeze for LeanWorkerDeclarationRow
impl RefUnwindSafe for LeanWorkerDeclarationRow
impl Send for LeanWorkerDeclarationRow
impl Sync for LeanWorkerDeclarationRow
impl Unpin for LeanWorkerDeclarationRow
impl UnsafeUnpin for LeanWorkerDeclarationRow
impl UnwindSafe for LeanWorkerDeclarationRow
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