pub enum ContextSource {
Content {
content: String,
},
File {
path: String,
required: bool,
},
Files {
paths: Vec<String>,
required: bool,
},
Glob {
pattern: String,
},
}Expand description
Represents a context source with its configuration
Variants§
Content
Literal string content
File
A single file path
Fields
Files
Multiple file paths (all-of semantics)
Fields
Glob
A glob pattern (always optional, 0 matches is OK)
Trait Implementations§
Source§impl Clone for ContextSource
impl Clone for ContextSource
Source§fn clone(&self) -> ContextSource
fn clone(&self) -> ContextSource
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 moreAuto Trait Implementations§
impl Freeze for ContextSource
impl RefUnwindSafe for ContextSource
impl Send for ContextSource
impl Sync for ContextSource
impl Unpin for ContextSource
impl UnwindSafe for ContextSource
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