Struct c509_certificate::general_names::general_name::GeneralName
source · pub struct GeneralName {
gn_type: GeneralNameTypeRegistry,
value: GeneralNameValue,
}
Expand description
A struct represents a GeneralName
.
GeneralName = ( GeneralNameType : int, GeneralNameValue : any )
Fields§
§gn_type: GeneralNameTypeRegistry
A registered general name type.
value: GeneralNameValue
A general name value.
Implementations§
source§impl GeneralName
impl GeneralName
sourcepub fn new(gn_type: GeneralNameTypeRegistry, value: GeneralNameValue) -> Self
pub fn new(gn_type: GeneralNameTypeRegistry, value: GeneralNameValue) -> Self
Create a new instance of GeneralName
.
sourcepub fn get_gn_type(&self) -> &GeneralNameTypeRegistry
pub fn get_gn_type(&self) -> &GeneralNameTypeRegistry
Get the GeneralName
type.
sourcepub fn get_gn_value(&self) -> &GeneralNameValue
pub fn get_gn_value(&self) -> &GeneralNameValue
Get the value of the GeneralName
in GeneralNameValue
.
Trait Implementations§
source§impl Clone for GeneralName
impl Clone for GeneralName
source§fn clone(&self) -> GeneralName
fn clone(&self) -> GeneralName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GeneralName
impl Debug for GeneralName
source§impl Decode<'_, ()> for GeneralName
impl Decode<'_, ()> for GeneralName
source§impl<'de> Deserialize<'de> for GeneralName
impl<'de> Deserialize<'de> for GeneralName
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 Encode<()> for GeneralName
impl Encode<()> for GeneralName
source§impl PartialEq for GeneralName
impl PartialEq for GeneralName
source§impl Serialize for GeneralName
impl Serialize for GeneralName
impl StructuralPartialEq for GeneralName
Auto Trait Implementations§
impl Freeze for GeneralName
impl RefUnwindSafe for GeneralName
impl Send for GeneralName
impl Sync for GeneralName
impl Unpin for GeneralName
impl UnwindSafe for GeneralName
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
)