pub enum CertInput {
Text(String),
Binary(Vec<u8>),
}Expand description
Certificate or key input - can be text (PEM content or file path) or binary (P12/PFX bytes)
Variants§
Implementations§
Source§impl CertInput
impl CertInput
Sourcepub fn is_pem_content(&self) -> bool
pub fn is_pem_content(&self) -> bool
Check if this looks like PEM content (has —–BEGIN marker)
Sourcepub fn is_p12_path(&self) -> bool
pub fn is_p12_path(&self) -> bool
Check if this looks like a P12/PFX file path (by extension)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CertInput
impl RefUnwindSafe for CertInput
impl Send for CertInput
impl Sync for CertInput
impl Unpin for CertInput
impl UnwindSafe for CertInput
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