pub struct TemporaryGitRef(/* private fields */);Expand description
A branch proven to be below the configured temporary namespace.
Implementations§
Source§impl TemporaryGitRef
impl TemporaryGitRef
Sourcepub fn new(
namespace: &TemporaryBranchNamespace,
branch: BranchName,
) -> Result<Self, TransportConfigError>
pub fn new( namespace: &TemporaryBranchNamespace, branch: BranchName, ) -> Result<Self, TransportConfigError>
Bind an exact branch to the generated workflow’s temporary namespace.
§Errors
Rejects the namespace root itself and any branch outside it.
Sourcepub fn branch(&self) -> &BranchName
pub fn branch(&self) -> &BranchName
Exact branch name without refs/heads/.
Trait Implementations§
Source§impl Clone for TemporaryGitRef
impl Clone for TemporaryGitRef
Source§impl Debug for TemporaryGitRef
impl Debug for TemporaryGitRef
impl Eq for TemporaryGitRef
Source§impl PartialEq for TemporaryGitRef
impl PartialEq for TemporaryGitRef
impl StructuralPartialEq for TemporaryGitRef
Auto Trait Implementations§
impl Freeze for TemporaryGitRef
impl RefUnwindSafe for TemporaryGitRef
impl Send for TemporaryGitRef
impl Sync for TemporaryGitRef
impl Unpin for TemporaryGitRef
impl UnsafeUnpin for TemporaryGitRef
impl UnwindSafe for TemporaryGitRef
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.