pub struct LocationQuery {
pub directory: Option<String>,
pub workspace: Option<String>,
}Expand description
Per-request V2 location override.
Query endpoints encode this using OpenCode’s deep-object parameters:
location[directory] and location[workspace].
Fields§
§directory: Option<String>§workspace: Option<String>Trait Implementations§
Source§impl Clone for LocationQuery
impl Clone for LocationQuery
Source§impl Debug for LocationQuery
impl Debug for LocationQuery
Source§impl Default for LocationQuery
impl Default for LocationQuery
Source§impl<'de> Deserialize<'de> for LocationQuery
impl<'de> Deserialize<'de> for LocationQuery
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 LocationQuery
Source§impl PartialEq for LocationQuery
impl PartialEq for LocationQuery
Source§impl Serialize for LocationQuery
impl Serialize for LocationQuery
impl StructuralPartialEq for LocationQuery
Auto Trait Implementations§
impl Freeze for LocationQuery
impl RefUnwindSafe for LocationQuery
impl Send for LocationQuery
impl Sync for LocationQuery
impl Unpin for LocationQuery
impl UnsafeUnpin for LocationQuery
impl UnwindSafe for LocationQuery
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§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.