pub struct Subject {
pub common_name: Option<String>,
pub country_code: Option<String>,
pub locality: Option<String>,
pub organization: Option<String>,
pub organizational_unit: Option<String>,
pub postal_code: Option<String>,
pub province: Option<String>,
pub rdn_sequence: Option<Vec<RelativeDistinguishedName>>,
pub street_address: Option<String>,
}Expand description
Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.
This type is not used in any activity, and only used as part of another schema.
Fields§
§common_name: Option<String>The “common name” of the subject.
country_code: Option<String>The country code of the subject.
locality: Option<String>The locality or city of the subject.
organization: Option<String>The organization of the subject.
organizational_unit: Option<String>The organizational_unit of the subject.
postal_code: Option<String>The postal code of the subject.
province: Option<String>The province, territory, or regional state of the subject.
rdn_sequence: Option<Vec<RelativeDistinguishedName>>This field can be used in place of the named subject fields.
street_address: Option<String>The street address of the subject.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Subject
impl<'de> Deserialize<'de> for Subject
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 Part for Subject
Auto Trait Implementations§
impl Freeze for Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnwindSafe for Subject
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