pub struct AttributeTypeAndValue {
pub ty: ObjectIdentifierAsn1,
pub value: AttributeTypeAndValueParameters,
}
Fields§
§ty: ObjectIdentifierAsn1
§value: AttributeTypeAndValueParameters
Implementations§
source§impl AttributeTypeAndValue
impl AttributeTypeAndValue
pub fn new_common_name<S: Into<DirectoryString>>(name: S) -> Self
pub fn new_surname<S: Into<DirectoryString>>(name: S) -> Self
pub fn new_serial_number<S: Into<DirectoryString>>(name: S) -> Self
pub fn new_country_name<S: Into<DirectoryString>>(name: S) -> Self
pub fn new_locality_name<S: Into<DirectoryString>>(name: S) -> Self
pub fn new_state_or_province_name<S: Into<DirectoryString>>(name: S) -> Self
pub fn new_street_name<S: Into<DirectoryString>>(name: S) -> Self
pub fn new_organization_name<S: Into<DirectoryString>>(name: S) -> Self
pub fn new_organizational_unit_name<S: Into<DirectoryString>>(name: S) -> Self
pub fn new_email_address<S: Into<Ia5StringAsn1>>(name: S) -> Self
pub fn new_given_name<S: Into<DirectoryString>>(name: S) -> Self
pub fn new_phone<S: Into<DirectoryString>>(name: S) -> Self
Trait Implementations§
source§impl Clone for AttributeTypeAndValue
impl Clone for AttributeTypeAndValue
source§fn clone(&self) -> AttributeTypeAndValue
fn clone(&self) -> AttributeTypeAndValue
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 AttributeTypeAndValue
impl Debug for AttributeTypeAndValue
source§impl<'de> Deserialize<'de> for AttributeTypeAndValue
impl<'de> Deserialize<'de> for AttributeTypeAndValue
source§fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Self, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<AttributeTypeAndValue> for AttributeTypeAndValue
impl PartialEq<AttributeTypeAndValue> for AttributeTypeAndValue
source§fn eq(&self, other: &AttributeTypeAndValue) -> bool
fn eq(&self, other: &AttributeTypeAndValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AttributeTypeAndValue
impl Serialize for AttributeTypeAndValue
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AttributeTypeAndValue
impl StructuralEq for AttributeTypeAndValue
impl StructuralPartialEq for AttributeTypeAndValue
Auto Trait Implementations§
impl RefUnwindSafe for AttributeTypeAndValue
impl Send for AttributeTypeAndValue
impl Sync for AttributeTypeAndValue
impl Unpin for AttributeTypeAndValue
impl UnwindSafe for AttributeTypeAndValue
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