Struct c509_certificate::extensions::extension::Extension
source · pub struct Extension {
registered_oid: C509oidRegistered,
critical: bool,
value: ExtensionValue,
}
Expand description
A struct of C509 Extension
Fields§
§registered_oid: C509oidRegistered
The registered OID of the Extension
.
critical: bool
The critical flag of the Extension
negative if critical is true, otherwise
positive.
value: ExtensionValue
The value of the Extension
in ExtensionValue
.
Implementations§
source§impl Extension
impl Extension
sourcepub fn new(oid: Oid<'static>, value: ExtensionValue, critical: bool) -> Self
pub fn new(oid: Oid<'static>, value: ExtensionValue, critical: bool) -> Self
Create a new instance of Extension
using OID
and value.
sourcepub fn get_value(&self) -> &ExtensionValue
pub fn get_value(&self) -> &ExtensionValue
Get the value of the Extension
in ExtensionValue
.
sourcepub fn get_critical(&self) -> bool
pub fn get_critical(&self) -> bool
Get the critical flag of the Extension
.
sourcepub fn get_registered_oid(&self) -> &C509oidRegistered
pub fn get_registered_oid(&self) -> &C509oidRegistered
Get the registered OID of the Extension
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Extension
impl<'de> Deserialize<'de> for Extension
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 StructuralPartialEq for Extension
Auto Trait Implementations§
impl Freeze for Extension
impl RefUnwindSafe for Extension
impl Send for Extension
impl Sync for Extension
impl Unpin for Extension
impl UnwindSafe for Extension
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)