pub struct DeclarationInspection {
pub name: String,
pub kind: String,
pub module: Option<String>,
pub source: Option<SourceRange>,
pub statement: Option<RenderedText>,
pub statement_rendering: Option<String>,
pub docstring: Option<RenderedText>,
pub attributes: Vec<String>,
pub proof_search: DeclarationProofSearchFacts,
pub flags: DeclarationFlags,
}Fields§
§name: String§kind: String§module: Option<String>§source: Option<SourceRange>§statement: Option<RenderedText>§statement_rendering: Option<String>How statement was rendered: "pretty" (notation-aware) or "raw"
(fully-elaborated Expr.toString). "raw" when Pretty was requested
but the pretty-printer could not render the term and fell back. None
when no statement was requested.
docstring: Option<RenderedText>§attributes: Vec<String>§proof_search: DeclarationProofSearchFacts§flags: DeclarationFlagsTrait Implementations§
Source§impl Clone for DeclarationInspection
impl Clone for DeclarationInspection
Source§fn clone(&self) -> DeclarationInspection
fn clone(&self) -> DeclarationInspection
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 DeclarationInspection
impl Debug for DeclarationInspection
Source§impl JsonSchema for DeclarationInspection
impl JsonSchema for DeclarationInspection
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for DeclarationInspection
impl RefUnwindSafe for DeclarationInspection
impl Send for DeclarationInspection
impl Sync for DeclarationInspection
impl Unpin for DeclarationInspection
impl UnsafeUnpin for DeclarationInspection
impl UnwindSafe for DeclarationInspection
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