pub struct GitModuleSource {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
Source§impl GitModuleSource
impl GitModuleSource
Sourcepub async fn clone_ref(&self) -> Result<String, DaggerError>
pub async fn clone_ref(&self) -> Result<String, DaggerError>
The ref to clone the root of the git repo from
Sourcepub async fn commit(&self) -> Result<String, DaggerError>
pub async fn commit(&self) -> Result<String, DaggerError>
The resolved commit of the git repo this source points to.
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 html_repo_url(&self) -> Result<String, DaggerError>
pub async fn html_repo_url(&self) -> Result<String, DaggerError>
The URL to access the web view of the repository (e.g., GitHub, GitLab, Bitbucket)
Sourcepub async fn html_url(&self) -> Result<String, DaggerError>
pub async fn html_url(&self) -> Result<String, DaggerError>
The URL to the source’s git repo in a web browser
Sourcepub async fn id(&self) -> Result<GitModuleSourceId, DaggerError>
pub async fn id(&self) -> Result<GitModuleSourceId, DaggerError>
A unique identifier for this GitModuleSource.
Sourcepub async fn root(&self) -> Result<String, DaggerError>
pub async fn root(&self) -> Result<String, DaggerError>
The clean module name of the root of the module
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).
Sourcepub async fn version(&self) -> Result<String, DaggerError>
pub async fn version(&self) -> Result<String, DaggerError>
The specified version of the git repo this source points to.
Trait Implementations§
Source§impl Clone for GitModuleSource
impl Clone for GitModuleSource
Source§fn clone(&self) -> GitModuleSource
fn clone(&self) -> GitModuleSource
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<GitModuleSourceId> for GitModuleSource
impl IntoID<GitModuleSourceId> for GitModuleSource
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<GitModuleSourceId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for GitModuleSource
impl !RefUnwindSafe for GitModuleSource
impl Send for GitModuleSource
impl Sync for GitModuleSource
impl Unpin for GitModuleSource
impl !UnwindSafe for GitModuleSource
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