pub struct GitRepository {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
Source§impl GitRepository
impl GitRepository
Sourcepub async fn branches(&self) -> Result<Vec<String>, DaggerError>
pub async fn branches(&self) -> Result<Vec<String>, DaggerError>
branches that match any of the given glob patterns.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn branches_opts<'a>(
&self,
opts: GitRepositoryBranchesOpts<'a>,
) -> Result<Vec<String>, DaggerError>
pub async fn branches_opts<'a>( &self, opts: GitRepositoryBranchesOpts<'a>, ) -> Result<Vec<String>, DaggerError>
branches that match any of the given glob patterns.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn commit(&self, id: impl Into<String>) -> GitRef
pub fn commit(&self, id: impl Into<String>) -> GitRef
Returns details of a commit.
§Arguments
id- Identifier of the commit (e.g., “b6315d8f2810962c601af73f86831f6866ea798b”).
Sourcepub async fn id(&self) -> Result<GitRepositoryId, DaggerError>
pub async fn id(&self) -> Result<GitRepositoryId, DaggerError>
A unique identifier for this GitRepository.
Sourcepub fn latest_version(&self) -> GitRef
pub fn latest_version(&self) -> GitRef
Returns details for the latest semver tag.
Sourcepub fn ref(&self, name: impl Into<String>) -> GitRef
pub fn ref(&self, name: impl Into<String>) -> GitRef
Returns details of a ref.
§Arguments
name- Ref’s name (can be a commit identifier, a tag name, a branch name, or a fully-qualified ref).
tags that match any of the given glob patterns.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
tags that match any of the given glob patterns.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn uncommitted(&self) -> Changeset
pub fn uncommitted(&self) -> Changeset
Returns the changeset of uncommitted changes in the git repository.
Sourcepub async fn url(&self) -> Result<String, DaggerError>
pub async fn url(&self) -> Result<String, DaggerError>
The URL of the git repository.
Trait Implementations§
Source§impl Clone for GitRepository
impl Clone for GitRepository
Source§fn clone(&self) -> GitRepository
fn clone(&self) -> GitRepository
Returns a duplicate 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<GitRepositoryId> for GitRepository
impl IntoID<GitRepositoryId> for GitRepository
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<GitRepositoryId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for GitRepository
impl !RefUnwindSafe for GitRepository
impl Send for GitRepository
impl Sync for GitRepository
impl Unpin for GitRepository
impl UnsafeUnpin for GitRepository
impl !UnwindSafe for GitRepository
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