pub struct Project {
pub id: String,
pub name: Option<String>,
pub directory: Option<String>,
pub current: bool,
pub settings: Option<ProjectSettings>,
pub extra: Value,
}Expand description
A project in OpenCode.
Fields§
§id: StringProject identifier.
name: Option<String>Project name.
directory: Option<String>Project directory path.
current: boolWhether this is the current project.
settings: Option<ProjectSettings>Project settings.
extra: ValueAdditional fields from server.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
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
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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