pub struct FileState {
pub content: String,
pub timestamp: u64,
pub offset: Option<u32>,
pub limit: Option<u32>,
pub is_partial_view: Option<bool>,
}Expand description
File state representing cached file content
Fields§
§content: String§timestamp: u64§offset: Option<u32>§limit: Option<u32>§is_partial_view: Option<bool>True when this entry was populated by auto-injection (e.g. AI.md) and
the injected content did not match disk (stripped HTML comments, stripped
frontmatter, truncated MEMORY.md). The model has only seen a partial view;
Edit/Write must require an explicit Read first. content here holds the
RAW disk bytes (for getChangedFiles diffing), not what the model saw.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileState
impl<'de> Deserialize<'de> for FileState
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 FileState
impl RefUnwindSafe for FileState
impl Send for FileState
impl Sync for FileState
impl Unpin for FileState
impl UnsafeUnpin for FileState
impl UnwindSafe for FileState
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