Struct dagger_sdk::Project
source · pub struct Project {
pub proc: Option<Arc<Child>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<Child>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
source§impl Project
impl Project
sourcepub fn commands(&self) -> Vec<ProjectCommand>
pub fn commands(&self) -> Vec<ProjectCommand>
Commands provided by this project
sourcepub async fn id(&self) -> Result<ProjectId, DaggerError>
pub async fn id(&self) -> Result<ProjectId, DaggerError>
A unique identifier for this project.
sourcepub fn load(&self, source: Directory, config_path: impl Into<String>) -> Project
pub fn load(&self, source: Directory, config_path: impl Into<String>) -> Project
Initialize this project from the given directory and config path
sourcepub async fn name(&self) -> Result<String, DaggerError>
pub async fn name(&self) -> Result<String, DaggerError>
Name of the project
Trait Implementations§
Auto Trait Implementations§
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