pub struct CodeGraphCodeExcerpt {
pub path: String,
pub language_id: String,
pub line_range: RepositoryCodeRange,
pub symbol_snapshot_id: Option<String>,
pub provenance: CodeGraphContextProvenance,
pub excerpt: String,
}Expand description
Compact code excerpt retained inside the context byte budget.
Fields§
§path: String§language_id: String§line_range: RepositoryCodeRange§symbol_snapshot_id: Option<String>§provenance: CodeGraphContextProvenance§excerpt: StringTrait Implementations§
Source§impl Clone for CodeGraphCodeExcerpt
impl Clone for CodeGraphCodeExcerpt
Source§fn clone(&self) -> CodeGraphCodeExcerpt
fn clone(&self) -> CodeGraphCodeExcerpt
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 CodeGraphCodeExcerpt
impl Debug for CodeGraphCodeExcerpt
Source§impl<'de> Deserialize<'de> for CodeGraphCodeExcerpt
impl<'de> Deserialize<'de> for CodeGraphCodeExcerpt
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 PartialEq for CodeGraphCodeExcerpt
impl PartialEq for CodeGraphCodeExcerpt
Source§impl Serialize for CodeGraphCodeExcerpt
impl Serialize for CodeGraphCodeExcerpt
impl StructuralPartialEq for CodeGraphCodeExcerpt
Auto Trait Implementations§
impl Freeze for CodeGraphCodeExcerpt
impl RefUnwindSafe for CodeGraphCodeExcerpt
impl Send for CodeGraphCodeExcerpt
impl Sync for CodeGraphCodeExcerpt
impl Unpin for CodeGraphCodeExcerpt
impl UnsafeUnpin for CodeGraphCodeExcerpt
impl UnwindSafe for CodeGraphCodeExcerpt
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