Struct eagre_asn1::types::PrintableString
[−]
[src]
pub struct PrintableString(_);
Asn1 String Type
Currently restricted character sets are not enforced, so it is the callers job to check wether string contents are legal for the specific string type
Trait Implementations
impl Debug for PrintableString
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<String> for PrintableString
[src]
fn from(s: String) -> PrintableString
[src]
Performs the conversion.
impl From<PrintableString> for String
[src]
fn from(s: PrintableString) -> String
[src]
Performs the conversion.
impl DER for PrintableString
[src]
fn der_universal_tag() -> UniversalTag
[src]
Return universal tag of this type
fn der_content() -> ContentType
[src]
Return content type of this type
fn der_encode_content(&self, w: &mut Write) -> Result<()>
[src]
Encode the content octets
fn der_decode_content(r: &mut Read, length: usize) -> Result<PrintableString>
[src]
Decode the content octets
fn der_intermediate(&self) -> Result<Intermediate>
[src]
Create Intermediate from this object
fn der_encode(&self, w: &mut Write) -> Result<()>
[src]
Fully encode into stream ( tag bytes + length bytes + content bytes )
fn der_bytes(&self) -> Result<Vec<u8>>
[src]
Return fully encoded bytes (wrapper for der_encode() for easier use)
fn der_from_intermediate(i: Intermediate) -> Result<Self>
[src]
Create object from Intermediate
fn der_decode(r: &mut Read) -> Result<Self>
[src]
Create object from stream
fn der_from_bytes(bytes: Vec<u8>) -> Result<Self>
[src]
Create object from bytes