pub struct Scope {
pub directory: Option<String>,
pub workspace: Option<String>,
}Expand description
Directory / workspace scoping for the session endpoints.
opencode serve can manage several project directories at once, and every
session endpoint (create, prompt, message, abort, permissions) plus the
GET /event stream accepts optional directory and workspace query
parameters that pin the call to one of them. A Scope carries those
values; an empty scope (the default) leaves the server on its own working
directory.
Fields§
§directory: Option<String>The directory query parameter — an absolute project directory path.
workspace: Option<String>The workspace query parameter — a workspace identifier.
Implementations§
Trait Implementations§
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
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