pub struct PckCrl { /* private fields */ }Implementations§
Source§impl PckCrl
impl PckCrl
pub fn new(crl: String, ca_chain: Vec<String>) -> Result<PckCrl, Error>
pub fn write_to_file(&self, output_dir: &str) -> Result<String, Error>
pub fn write_to_file_if_not_exist( &self, output_dir: &str, ) -> Result<Option<PathBuf>, Error>
pub fn read_from_file(input_dir: &str) -> Result<Self, Error>
pub fn crl_as_pem(&self) -> &String
pub fn crl_as_der(&self) -> Result<Vec<u8>, Error>
pub fn certificate_chain(&self) -> &Vec<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PckCrl
impl<'de> Deserialize<'de> for PckCrl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PckCrl
impl StructuralPartialEq for PckCrl
Auto Trait Implementations§
impl Freeze for PckCrl
impl RefUnwindSafe for PckCrl
impl Send for PckCrl
impl Sync for PckCrl
impl Unpin for PckCrl
impl UnwindSafe for PckCrl
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