pub struct GitRef {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}
Fields§
§proc: Option<Arc<DaggerSessionProc>>
§selection: Selection
§graphql_client: DynGraphQLClient
Implementations§
Source§impl GitRef
impl GitRef
Sourcepub async fn commit(&self) -> Result<String, DaggerError>
pub async fn commit(&self) -> Result<String, DaggerError>
The resolved commit id at this ref.
Sourcepub fn common_ancestor(&self, other: impl IntoID<GitRefId>) -> GitRef
pub fn common_ancestor(&self, other: impl IntoID<GitRefId>) -> GitRef
Find the best common ancestor between this ref and another ref.
§Arguments
other
- The other ref to compare against.
Sourcepub async fn id(&self) -> Result<GitRefId, DaggerError>
pub async fn id(&self) -> Result<GitRefId, DaggerError>
A unique identifier for this GitRef.
Sourcepub async fn ref(&self) -> Result<String, DaggerError>
pub async fn ref(&self) -> Result<String, DaggerError>
The resolved ref name at this ref.
Sourcepub fn tree(&self) -> Directory
pub fn tree(&self) -> Directory
The filesystem tree at this ref.
§Arguments
opt
- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn tree_opts(&self, opts: GitRefTreeOpts) -> Directory
pub fn tree_opts(&self, opts: GitRefTreeOpts) -> Directory
The filesystem tree at this ref.
§Arguments
opt
- optional argument, see inner type for documentation, use_opts to use
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitRef
impl !RefUnwindSafe for GitRef
impl Send for GitRef
impl Sync for GitRef
impl Unpin for GitRef
impl !UnwindSafe for GitRef
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