pub struct TeletexString(/* private fields */);
Expand description
ASN.1 TeletexString
type.
§Examples
You can create a TeletexString
from a literal string with TeletexString::try_from
:
use rcgen::TeletexString;
let hello = TeletexString::try_from("hello").unwrap();
§Supported characters
The standard defines a complex character set allowed in this type. However, quoting the ASN.1 mailing list, “a sizable volume of software in the world treats TeletexString (T61String) as a simple 8-bit string with mostly Windows Latin 1 (superset of iso-8859-1) encoding”.
TeletexString
is included for backward compatibility, RFC 5280 say it
SHOULD NOT be used for certificates for new subjects.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for TeletexString
impl AsRef<str> for TeletexString
Source§impl Clone for TeletexString
impl Clone for TeletexString
Source§fn clone(&self) -> TeletexString
fn clone(&self) -> TeletexString
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TeletexString
impl Debug for TeletexString
Source§impl Display for TeletexString
impl Display for TeletexString
Source§impl FromStr for TeletexString
impl FromStr for TeletexString
Source§impl Hash for TeletexString
impl Hash for TeletexString
Source§impl PartialEq<&String> for TeletexString
impl PartialEq<&String> for TeletexString
Source§impl PartialEq<&str> for TeletexString
impl PartialEq<&str> for TeletexString
Source§impl PartialEq<String> for TeletexString
impl PartialEq<String> for TeletexString
Source§impl PartialEq<str> for TeletexString
impl PartialEq<str> for TeletexString
Source§impl PartialEq for TeletexString
impl PartialEq for TeletexString
Source§impl TryFrom<&str> for TeletexString
impl TryFrom<&str> for TeletexString
Source§fn try_from(input: &str) -> Result<Self, Error>
fn try_from(input: &str) -> Result<Self, Error>
Converts a &str
to a TeletexString
.
Any character not in the TeletexString
charset will be rejected.
See TeletexString
documentation for more information.
The result is allocated on the heap.
Source§impl TryFrom<String> for TeletexString
impl TryFrom<String> for TeletexString
Source§fn try_from(input: String) -> Result<Self, Error>
fn try_from(input: String) -> Result<Self, Error>
Converts a String
into a TeletexString
Any character not in the TeletexString
charset will be rejected.
See TeletexString
documentation for more information.
This conversion does not allocate or copy memory.