#[non_exhaustive]pub struct RelativeDistinguishedName {
pub attributes: Vec<AttributeTypeAndValue>,
/* private fields */
}Expand description
RelativeDistinguishedName specifies a relative distinguished name which will be used to build a distinguished name.
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.attributes: Vec<AttributeTypeAndValue>Attributes describes the attribute value assertions in the RDN.
Implementations§
Source§impl RelativeDistinguishedName
impl RelativeDistinguishedName
pub fn new() -> Self
Sourcepub fn set_attributes<T, V>(self, v: T) -> Self
pub fn set_attributes<T, V>(self, v: T) -> Self
Sets the value of attributes.
§Example
ⓘ
use google_cloud_security_privateca_v1::model::AttributeTypeAndValue;
let x = RelativeDistinguishedName::new()
.set_attributes([
AttributeTypeAndValue::default()/* use setters */,
AttributeTypeAndValue::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for RelativeDistinguishedName
impl Clone for RelativeDistinguishedName
Source§fn clone(&self) -> RelativeDistinguishedName
fn clone(&self) -> RelativeDistinguishedName
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 RelativeDistinguishedName
impl Debug for RelativeDistinguishedName
Source§impl Default for RelativeDistinguishedName
impl Default for RelativeDistinguishedName
Source§fn default() -> RelativeDistinguishedName
fn default() -> RelativeDistinguishedName
Returns the “default value” for a type. Read more
Source§impl Message for RelativeDistinguishedName
impl Message for RelativeDistinguishedName
impl StructuralPartialEq for RelativeDistinguishedName
Auto Trait Implementations§
impl Freeze for RelativeDistinguishedName
impl RefUnwindSafe for RelativeDistinguishedName
impl Send for RelativeDistinguishedName
impl Sync for RelativeDistinguishedName
impl Unpin for RelativeDistinguishedName
impl UnwindSafe for RelativeDistinguishedName
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