Struct picky_asn1_x509::extension::KeyUsage
source · pub struct KeyUsage(/* private fields */);
Expand description
Implementations§
source§impl KeyUsage
impl KeyUsage
pub fn new(num_bits: usize) -> Self
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn digital_signature(&self) -> bool
pub fn set_digital_signature(&mut self, val: bool)
pub fn content_commitment(&self) -> bool
pub fn set_content_commitment(&mut self, val: bool)
pub fn key_encipherment(&self) -> bool
pub fn set_key_encipherment(&mut self, val: bool)
pub fn data_encipherment(&self) -> bool
pub fn set_data_encipherment(&mut self, val: bool)
pub fn key_agreement(&self) -> bool
pub fn set_key_agreement(&mut self, val: bool)
pub fn key_cert_sign(&self) -> bool
pub fn set_key_cert_sign(&mut self, val: bool)
pub fn crl_sign(&self) -> bool
pub fn set_crl_sign(&mut self, val: bool)
pub fn encipher_only(&self) -> bool
pub fn set_encipher_only(&mut self, val: bool)
pub fn decipher_only(&self) -> bool
pub fn set_decipher_only(&mut self, val: bool)
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyUsage
impl<'de> Deserialize<'de> for KeyUsage
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
source§impl PartialEq for KeyUsage
impl PartialEq for KeyUsage
impl Eq for KeyUsage
impl StructuralPartialEq for KeyUsage
Auto Trait Implementations§
impl Freeze for KeyUsage
impl RefUnwindSafe for KeyUsage
impl Send for KeyUsage
impl Sync for KeyUsage
impl Unpin for KeyUsage
impl UnwindSafe for KeyUsage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)