pub enum FilePartSource {
File {
text: FilePartSourceText,
path: String,
extra: Value,
},
Symbol {
text: FilePartSourceText,
path: String,
range: Value,
name: String,
kind: i64,
extra: Value,
},
Resource {
text: FilePartSourceText,
client_name: String,
uri: String,
extra: Value,
},
Unknown,
}Expand description
Source information for a file part (internally tagged by “type”).
Variants§
File
File source.
Symbol
Symbol source (from LSP).
Fields
§
text: FilePartSourceTextText range.
Resource
MCP resource source.
Fields
§
text: FilePartSourceTextText range.
Unknown
Unknown source type (forward compatibility).
Trait Implementations§
Source§impl Clone for FilePartSource
impl Clone for FilePartSource
Source§fn clone(&self) -> FilePartSource
fn clone(&self) -> FilePartSource
Returns a duplicate of the value. Read more
1.0.0 · 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 FilePartSource
impl Debug for FilePartSource
Source§impl<'de> Deserialize<'de> for FilePartSource
impl<'de> Deserialize<'de> for FilePartSource
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
Auto Trait Implementations§
impl Freeze for FilePartSource
impl RefUnwindSafe for FilePartSource
impl Send for FilePartSource
impl Sync for FilePartSource
impl Unpin for FilePartSource
impl UnwindSafe for FilePartSource
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