pub struct WorkspaceInitResult {
pub root: PathBuf,
pub workspace_id: String,
pub created: bool,
}Expand description
Result of WORKSPACE_INIT.
Fields§
§root: PathBufThe workspace’s canonical root.
workspace_id: StringThe root’s directory name, slugified. Nothing keys by it any more: it was the id
of the [workspace] registry entry workspace.init used to write into the
marker’s config.toml, and stays for clients that print it.
created: boolfalse when the workspace already existed (exit 0 either way).
Trait Implementations§
Source§impl Clone for WorkspaceInitResult
impl Clone for WorkspaceInitResult
Source§impl Debug for WorkspaceInitResult
impl Debug for WorkspaceInitResult
Source§impl<'de> Deserialize<'de> for WorkspaceInitResult
impl<'de> Deserialize<'de> for WorkspaceInitResult
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 Forget for WorkspaceInitResult
impl Freeze for WorkspaceInitResult
impl Move for WorkspaceInitResult
impl RefUnwindSafe for WorkspaceInitResult
impl Send for WorkspaceInitResult
impl Sync for WorkspaceInitResult
impl Unpin for WorkspaceInitResult
impl UnsafeUnpin for WorkspaceInitResult
impl UnwindSafe for WorkspaceInitResult
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