You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rcgen/src/lib.rs
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -349,6 +349,30 @@ impl DistinguishedName {
349
349
self.entries.push_front((ty, s.into()));
350
350
}
351
351
352
+
/// Replaces the *fist occurrence* of a type with a new value.
353
+
/// This is a convenience function to avoid duplicating values.
354
+
///
355
+
/// If there are multiple occurrences of a type there is currently no way of changing the besides iterating over the types and values of an existing instance and creating a new instance.
356
+
///
357
+
/// ```
358
+
/// # use rcgen::{DistinguishedName, DnType, DnValue};
0 commit comments