pub struct SymbolSource {
pub content: String,
pub start_line: usize,
pub end_line: usize,
pub language: String,
}Expand description
Source code block for symbol_overview.
Fields§
§content: StringContent of the symbol (source code).
start_line: usizeStarting line number (1-indexed).
end_line: usizeEnding line number (1-indexed).
language: StringProgramming language.
Trait Implementations§
Source§impl Clone for SymbolSource
impl Clone for SymbolSource
Source§fn clone(&self) -> SymbolSource
fn clone(&self) -> SymbolSource
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 SymbolSource
impl Debug for SymbolSource
Source§impl<'de> Deserialize<'de> for SymbolSource
impl<'de> Deserialize<'de> for SymbolSource
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
Source§impl JsonSchema for SymbolSource
impl JsonSchema for SymbolSource
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 SymbolSource
impl RefUnwindSafe for SymbolSource
impl Send for SymbolSource
impl Sync for SymbolSource
impl Unpin for SymbolSource
impl UnsafeUnpin for SymbolSource
impl UnwindSafe for SymbolSource
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