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 From<String> for PrintableString
[src]

fn from(s: String) -> PrintableString

Performs the conversion.

impl DER for PrintableString
[src]

fn der_universal_tag() -> UniversalTag

Return universal tag of this type

fn der_content() -> ContentType

Return content type of this type

fn der_encode_content(&self, w: &mut Write) -> Result<()>

Encode the content octets

fn der_decode_content(r: &mut Read, length: usize) -> Result<PrintableString>

Decode the content octets

fn der_intermediate(&self) -> Result<Intermediate>

Create Intermediate from this object

fn der_encode(&self, w: &mut Write) -> Result<()>

Fully encode into stream ( tag bytes + length bytes + content bytes )

fn der_bytes(&self) -> Result<Vec<u8>>

Return fully encoded bytes (wrapper for der_encode() for easier use)

fn der_from_intermediate(i: Intermediate) -> Result<Self>

Create object from Intermediate

fn der_decode(r: &mut Read) -> Result<Self>

Create object from stream

fn der_from_bytes(bytes: Vec<u8>) -> Result<Self>

Create object from bytes

Derived Implementations

impl Debug for PrintableString
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.