Struct git_object::commit::ExtraHeaders
source · pub struct ExtraHeaders<I> { /* private fields */ }
Implementations§
source§impl<'a, I> ExtraHeaders<I>where
I: Iterator<Item = (&'a BStr, &'a BStr)>,
impl<'a, I> ExtraHeaders<I>where I: Iterator<Item = (&'a BStr, &'a BStr)>,
Instantiation and convenience.
sourcepub fn new(iter: I) -> Self
pub fn new(iter: I) -> Self
Create a new instance from an iterator over tuples of (name, value) pairs.
sourcepub fn find(self, name: &str) -> Option<&'a BStr>
pub fn find(self, name: &str) -> Option<&'a BStr>
Find the value of the first header with the given name
.
sourcepub fn find_all(self, name: &'a str) -> impl Iterator<Item = &'a BStr>
pub fn find_all(self, name: &'a str) -> impl Iterator<Item = &'a BStr>
Return an iterator over all values of headers with the given name
.
Return an iterator over all git mergetags.
A merge tag is a tag object embedded within the respective header field of a commit, making it a child object of sorts.
sourcepub fn pgp_signature(self) -> Option<&'a BStr>
pub fn pgp_signature(self) -> Option<&'a BStr>
Return the cryptographic signature provided by gpg/pgp verbatim.