pub struct BmpString(/* private fields */);
Expand description
ASN.1 BMPString
type.
§Examples
You can create a BmpString
from a literal string with BmpString::try_from
:
use rcgen::BmpString;
let hello = BmpString::try_from("hello").unwrap();
§Supported characters
Encodes Basic Multilingual Plane (BMP) subset of Unicode (ISO 10646), a.k.a. UCS-2.
Bytes are encoded as UTF-16 big-endian.
BMPString
is included for backward compatibility, RFC 5280 say it
SHOULD NOT be used for certificates for new subjects.
Implementations§
Source§impl BmpString
impl BmpString
Trait Implementations§
Source§impl TryFrom<String> for BmpString
impl TryFrom<String> for BmpString
impl Eq for BmpString
impl StructuralPartialEq for BmpString
Auto Trait Implementations§
impl Freeze for BmpString
impl RefUnwindSafe for BmpString
impl Send for BmpString
impl Sync for BmpString
impl Unpin for BmpString
impl UnwindSafe for BmpString
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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