#[non_exhaustive]pub enum SigningIdentity {
MacTeamId(String),
WindowsCommonName(String),
}Expand description
A code-signing identity a peer may carry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MacTeamId(String)
macOS: the Apple Developer team identifier (kSecCodeInfoTeamIdentifier, the leaf
certificate’s subject.OU), exactly ten upper-case letters or digits. Anything else
never matches (the value is spliced into a requirement string, so it is refused rather
than escaped).
WindowsCommonName(String)
Windows: the common name of the Authenticode leaf signer certificate, compared exactly and case-sensitively. An empty name never matches.
Trait Implementations§
Source§impl Clone for SigningIdentity
impl Clone for SigningIdentity
Source§impl Debug for SigningIdentity
impl Debug for SigningIdentity
impl Eq for SigningIdentity
Source§impl PartialEq for SigningIdentity
impl PartialEq for SigningIdentity
impl StructuralPartialEq for SigningIdentity
Auto Trait Implementations§
impl Freeze for SigningIdentity
impl RefUnwindSafe for SigningIdentity
impl Send for SigningIdentity
impl Sync for SigningIdentity
impl Unpin for SigningIdentity
impl UnsafeUnpin for SigningIdentity
impl UnwindSafe for SigningIdentity
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