Struct dagger_sdk::GitRef
source · pub struct GitRef {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
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 async fn id(&self) -> Result<GitRefId, DaggerError>
pub async fn id(&self) -> Result<GitRefId, DaggerError>
A unique identifier for this GitRef.
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<'a>(&self, opts: GitRefTreeOpts<'a>) -> Directory
pub fn tree_opts<'a>(&self, opts: GitRefTreeOpts<'a>) -> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)