pub struct Scope {
pub paths: Vec<String>,
pub symbols: Option<Vec<String>>,
pub ops: Vec<OpKind>,
pub max_files: Option<u32>,
pub max_lines: Option<u32>,
pub scratch: Vec<String>,
}Expand description
What a session may touch. Patterns use the language in crate::paths.
Fields§
§paths: Vec<String>§symbols: Option<Vec<String>>None: no symbol restriction beyond paths.
ops: Vec<OpKind>§max_files: Option<u32>§max_lines: Option<u32>§scratch: Vec<String>Absolute directories outside the workspace the agent may write to (notes, logs, throwaway files). Writes there are allowed and are not facts; nothing there can be proposed. Left out of the encoding when empty, so entries without one keep their bytes (format 5).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scope
impl<'de> Deserialize<'de> for Scope
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
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Forget for Scope
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.