pub struct Workspace { /* private fields */ }Expand description
Stores information about current workspace.
Implementations§
Source§impl Workspace
impl Workspace
Sourcepub fn packages(&self) -> Result<&[Package], WorkspaceError>
pub fn packages(&self) -> Result<&[Package], WorkspaceError>
Returns list of all packages
Sourcepub fn workspace_root(&self) -> Result<&Path, WorkspaceError>
pub fn workspace_root(&self) -> Result<&Path, WorkspaceError>
Returns the path to workspace root
Sourcepub fn target_directory(&self) -> Result<&Path, WorkspaceError>
pub fn target_directory(&self) -> Result<&Path, WorkspaceError>
Returns the path to target directory
Sourcepub fn discord_url(&self) -> Result<Option<String>, WorkspaceError>
pub fn discord_url(&self) -> Result<Option<String>, WorkspaceError>
Return discord url
Sourcepub fn master_branch(&self) -> Result<Option<String>, WorkspaceError>
pub fn master_branch(&self) -> Result<Option<String>, WorkspaceError>
Return the master branch
Sourcepub fn repository_url(&self) -> Result<Option<String>, WorkspaceError>
pub fn repository_url(&self) -> Result<Option<String>, WorkspaceError>
Return the repository url
Sourcepub fn workspace_name(&self) -> Result<Option<String>, WorkspaceError>
pub fn workspace_name(&self) -> Result<Option<String>, WorkspaceError>
Return the workspace_name
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnwindSafe for Workspace
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,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<S> SetWithType for S
impl<S> SetWithType for S
Source§fn set_with_type<T, IntoT>(&mut self, component: IntoT)where
IntoT: Into<T>,
S: SetComponent<T, IntoT>,
fn set_with_type<T, IntoT>(&mut self, component: IntoT)where
IntoT: Into<T>,
S: SetComponent<T, IntoT>,
Function to set value of a component by its type.