pub struct TagOps<'a> { /* private fields */ }Available on crate feature
workflow only.Expand description
Operations on tags, scoped to a Repository.
Implementations§
Source§impl<'a> TagOps<'a>
impl<'a> TagOps<'a>
Sourcepub async fn list_matching(
&self,
pattern: impl Into<String>,
) -> Result<Vec<Tag>>
pub async fn list_matching( &self, pattern: impl Into<String>, ) -> Result<Vec<Tag>>
List tags whose ref path matches pattern
(e.g. "refs/tags/v1.*").
Sourcepub async fn create(
&self,
name: impl Into<String>,
target: impl Into<String>,
) -> Result<()>
pub async fn create( &self, name: impl Into<String>, target: impl Into<String>, ) -> Result<()>
Create a lightweight tag name pointing at target (a commit-ish).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TagOps<'a>
impl<'a> RefUnwindSafe for TagOps<'a>
impl<'a> Send for TagOps<'a>
impl<'a> Sync for TagOps<'a>
impl<'a> Unpin for TagOps<'a>
impl<'a> UnsafeUnpin for TagOps<'a>
impl<'a> UnwindSafe for TagOps<'a>
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