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
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