pub enum GpgFormat {
OpenPgp,
X509,
Ssh,
}Expand description
The signature format selected via gpg.format.
Variants§
Implementations§
Source§impl GpgFormat
impl GpgFormat
Sourcepub fn from_name(name: &str) -> Option<GpgFormat>
pub fn from_name(name: &str) -> Option<GpgFormat>
Resolve a gpg.format value case-sensitively (Git get_format_by_name).
openpgp is valid; OpEnPgP is not (matches subtest 24).
Sourcepub fn from_signature(sig: &[u8]) -> Option<GpgFormat>
pub fn from_signature(sig: &[u8]) -> Option<GpgFormat>
Detect the format from a signature’s armor header
(Git gpg-interface.c:get_format_by_sig). Returns None for an
unrecognized signature.
Trait Implementations§
impl Copy for GpgFormat
impl Eq for GpgFormat
impl StructuralPartialEq for GpgFormat
Auto Trait Implementations§
impl Freeze for GpgFormat
impl RefUnwindSafe for GpgFormat
impl Send for GpgFormat
impl Sync for GpgFormat
impl Unpin for GpgFormat
impl UnsafeUnpin for GpgFormat
impl UnwindSafe for GpgFormat
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