pub struct ReadSourceFileMetadata {
pub language: String,
pub content: Option<String>,
pub symbols: Vec<SourceSymbol>,
pub duration_ms: Option<u64>,
pub unsupported_language: Option<bool>,
}Expand description
The metadata embedded in structured_content for read_source_file.
Fields§
§language: StringProgramming language of the source file.
content: Option<String>Clean source content without timing metadata appended.
Provided so consumers like read_files get uncontaminated content.
symbols: Vec<SourceSymbol>Symbols extracted from the source file.
duration_ms: Option<u64>Wall-clock time in milliseconds that this tool call took to complete.
unsupported_language: Option<bool>Whether this file’s language is not supported for AST parsing. When true, content is raw file content and symbols is empty.
Trait Implementations§
Source§impl Clone for ReadSourceFileMetadata
impl Clone for ReadSourceFileMetadata
Source§fn clone(&self) -> ReadSourceFileMetadata
fn clone(&self) -> ReadSourceFileMetadata
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 ReadSourceFileMetadata
impl Debug for ReadSourceFileMetadata
Source§impl Default for ReadSourceFileMetadata
impl Default for ReadSourceFileMetadata
Source§fn default() -> ReadSourceFileMetadata
fn default() -> ReadSourceFileMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReadSourceFileMetadata
impl<'de> Deserialize<'de> for ReadSourceFileMetadata
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 ReadSourceFileMetadata
impl JsonSchema for ReadSourceFileMetadata
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 moreSource§impl PartialEq for ReadSourceFileMetadata
impl PartialEq for ReadSourceFileMetadata
Source§fn eq(&self, other: &ReadSourceFileMetadata) -> bool
fn eq(&self, other: &ReadSourceFileMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReadSourceFileMetadata
impl Serialize for ReadSourceFileMetadata
impl StructuralPartialEq for ReadSourceFileMetadata
Auto Trait Implementations§
impl Freeze for ReadSourceFileMetadata
impl RefUnwindSafe for ReadSourceFileMetadata
impl Send for ReadSourceFileMetadata
impl Sync for ReadSourceFileMetadata
impl Unpin for ReadSourceFileMetadata
impl UnsafeUnpin for ReadSourceFileMetadata
impl UnwindSafe for ReadSourceFileMetadata
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