#[non_exhaustive]pub struct SubjectConfig {
pub subject: Option<Subject>,
pub subject_alt_name: Option<SubjectAltNames>,
/* private fields */
}Expand description
These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.subject: Option<Subject>Optional. Contains distinguished name fields such as the common name, location and organization.
subject_alt_name: Option<SubjectAltNames>Optional. The subject alternative name fields.
Implementations§
Source§impl SubjectConfig
impl SubjectConfig
pub fn new() -> Self
Sourcepub fn set_subject<T>(self, v: T) -> Self
pub fn set_subject<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_subject<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_subject<T>(self, v: Option<T>) -> Self
Sourcepub fn set_subject_alt_name<T>(self, v: T) -> Selfwhere
T: Into<SubjectAltNames>,
pub fn set_subject_alt_name<T>(self, v: T) -> Selfwhere
T: Into<SubjectAltNames>,
Sets the value of subject_alt_name.
§Example
ⓘ
use google_cloud_security_privateca_v1::model::SubjectAltNames;
let x = SubjectConfig::new().set_subject_alt_name(SubjectAltNames::default()/* use setters */);Sourcepub fn set_or_clear_subject_alt_name<T>(self, v: Option<T>) -> Selfwhere
T: Into<SubjectAltNames>,
pub fn set_or_clear_subject_alt_name<T>(self, v: Option<T>) -> Selfwhere
T: Into<SubjectAltNames>,
Sets or clears the value of subject_alt_name.
§Example
ⓘ
use google_cloud_security_privateca_v1::model::SubjectAltNames;
let x = SubjectConfig::new().set_or_clear_subject_alt_name(Some(SubjectAltNames::default()/* use setters */));
let x = SubjectConfig::new().set_or_clear_subject_alt_name(None::<SubjectAltNames>);Trait Implementations§
Source§impl Clone for SubjectConfig
impl Clone for SubjectConfig
Source§fn clone(&self) -> SubjectConfig
fn clone(&self) -> SubjectConfig
Returns a duplicate 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 SubjectConfig
impl Debug for SubjectConfig
Source§impl Default for SubjectConfig
impl Default for SubjectConfig
Source§fn default() -> SubjectConfig
fn default() -> SubjectConfig
Returns the “default value” for a type. Read more
Source§impl Message for SubjectConfig
impl Message for SubjectConfig
Source§impl PartialEq for SubjectConfig
impl PartialEq for SubjectConfig
impl StructuralPartialEq for SubjectConfig
Auto Trait Implementations§
impl Freeze for SubjectConfig
impl RefUnwindSafe for SubjectConfig
impl Send for SubjectConfig
impl Sync for SubjectConfig
impl Unpin for SubjectConfig
impl UnwindSafe for SubjectConfig
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