#[non_exhaustive]pub struct AnnotatedTag {
pub name: String,
pub message: String,
pub rev: Option<String>,
}Expand description
Options for GitApi::tag_create_annotated (git tag -a).
#[non_exhaustive], so build it through AnnotatedTag::new and the chained
setter rather than a struct literal.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe tag name.
message: StringThe tag message (-m).
rev: Option<String>The revision to tag (<rev>); None tags HEAD.
Implementations§
Trait Implementations§
Source§impl Clone for AnnotatedTag
impl Clone for AnnotatedTag
Source§fn clone(&self) -> AnnotatedTag
fn clone(&self) -> AnnotatedTag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnnotatedTag
impl RefUnwindSafe for AnnotatedTag
impl Send for AnnotatedTag
impl Sync for AnnotatedTag
impl Unpin for AnnotatedTag
impl UnsafeUnpin for AnnotatedTag
impl UnwindSafe for AnnotatedTag
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