pub struct FileMarker {
pub path: Option<String>,
pub content: String,
pub is_diff: bool,
}Expand description
A single file marker extracted from an LLM response.
Represents a File: path or ### File: path heading followed by content,
optionally within a fenced code block. The parser never invents filenames —
unnamed code blocks produce a None path.
Fields§
§path: Option<String>The file path extracted from the heading (None for unnamed code blocks).
content: StringThe content associated with this marker.
is_diff: boolWhether this marker was preceded by a Diff: heading (patch format).
Trait Implementations§
Source§impl Clone for FileMarker
impl Clone for FileMarker
Source§fn clone(&self) -> FileMarker
fn clone(&self) -> FileMarker
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 FileMarker
impl Debug for FileMarker
Source§impl PartialEq for FileMarker
impl PartialEq for FileMarker
impl Eq for FileMarker
impl StructuralPartialEq for FileMarker
Auto Trait Implementations§
impl Freeze for FileMarker
impl RefUnwindSafe for FileMarker
impl Send for FileMarker
impl Sync for FileMarker
impl Unpin for FileMarker
impl UnsafeUnpin for FileMarker
impl UnwindSafe for FileMarker
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.