pub struct WorkspaceInstruction { /* private fields */ }Expand description
One caller-loaded workspace instruction document.
Implementations§
Source§impl WorkspaceInstruction
impl WorkspaceInstruction
Sourcepub fn new(
id: PromptSegmentId,
content: impl Into<String>,
locator: impl Into<String>,
trust: TrustLevel,
) -> Result<Self, ContextError>
pub fn new( id: PromptSegmentId, content: impl Into<String>, locator: impl Into<String>, trust: TrustLevel, ) -> Result<Self, ContextError>
Creates one explicit workspace document snapshot.
§Errors
Returns an error for invalid content or source locator.
Trait Implementations§
Source§impl Clone for WorkspaceInstruction
impl Clone for WorkspaceInstruction
Source§fn clone(&self) -> WorkspaceInstruction
fn clone(&self) -> WorkspaceInstruction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceInstruction
impl Debug for WorkspaceInstruction
impl Eq for WorkspaceInstruction
Source§impl PartialEq for WorkspaceInstruction
impl PartialEq for WorkspaceInstruction
impl StructuralPartialEq for WorkspaceInstruction
Auto Trait Implementations§
impl Freeze for WorkspaceInstruction
impl RefUnwindSafe for WorkspaceInstruction
impl Send for WorkspaceInstruction
impl Sync for WorkspaceInstruction
impl Unpin for WorkspaceInstruction
impl UnsafeUnpin for WorkspaceInstruction
impl UnwindSafe for WorkspaceInstruction
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