pub struct CodeChunk {
pub id: String,
pub level: ChunkLevel,
pub kind: AstNodeKind,
pub name: String,
pub content: String,
pub location: SourceLocation,
pub parent_id: Option<String>,
pub children_ids: Vec<String>,
pub metadata: ChunkMetadata,
}
Expand description
Code chunk for hierarchical organization
Fields§
§id: String
§level: ChunkLevel
§kind: AstNodeKind
§name: String
§content: String
§location: SourceLocation
§parent_id: Option<String>
§children_ids: Vec<String>
§metadata: ChunkMetadata
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CodeChunk
impl<'de> Deserialize<'de> for CodeChunk
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 CodeChunk
impl RefUnwindSafe for CodeChunk
impl Send for CodeChunk
impl Sync for CodeChunk
impl Unpin for CodeChunk
impl UnwindSafe for CodeChunk
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