pub struct LocalModuleSource {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
Source§impl LocalModuleSource
impl LocalModuleSource
Sourcepub fn context_directory(&self) -> Directory
pub fn context_directory(&self) -> Directory
The directory containing everything needed to load load and use the module.
Sourcepub async fn id(&self) -> Result<LocalModuleSourceId, DaggerError>
pub async fn id(&self) -> Result<LocalModuleSourceId, DaggerError>
A unique identifier for this LocalModuleSource.
Sourcepub async fn rel_host_path(&self) -> Result<String, DaggerError>
pub async fn rel_host_path(&self) -> Result<String, DaggerError>
The relative path to the module root from the host directory
Sourcepub async fn root_subpath(&self) -> Result<String, DaggerError>
pub async fn root_subpath(&self) -> Result<String, DaggerError>
The path to the root of the module source under the context directory. This directory contains its configuration file. It also contains its source code (possibly as a subdirectory).
Trait Implementations§
Source§impl Clone for LocalModuleSource
impl Clone for LocalModuleSource
Source§fn clone(&self) -> LocalModuleSource
fn clone(&self) -> LocalModuleSource
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl IntoID<LocalModuleSourceId> for LocalModuleSource
impl IntoID<LocalModuleSourceId> for LocalModuleSource
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<LocalModuleSourceId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for LocalModuleSource
impl !RefUnwindSafe for LocalModuleSource
impl Send for LocalModuleSource
impl Sync for LocalModuleSource
impl Unpin for LocalModuleSource
impl !UnwindSafe for LocalModuleSource
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