pub struct VisibleString<'a> { /* private fields */ }Expand description
ASN.1 restricted character string type (VisibleString)
Implementations§
Source§impl<'a> VisibleString<'a>
impl<'a> VisibleString<'a>
Trait Implementations§
Source§impl<'a> AsRef<str> for VisibleString<'a>
impl<'a> AsRef<str> for VisibleString<'a>
Source§impl<'a> CheckDerConstraints for VisibleString<'a>
impl<'a> CheckDerConstraints for VisibleString<'a>
Source§impl<'a> Debug for VisibleString<'a>
impl<'a> Debug for VisibleString<'a>
impl DerAutoDerive for VisibleString<'_>
impl<'a> Eq for VisibleString<'a>
Source§impl<'a> From<&'a str> for VisibleString<'a>
impl<'a> From<&'a str> for VisibleString<'a>
Source§fn from(s: &'a str) -> VisibleString<'a>
fn from(s: &'a str) -> VisibleString<'a>
Converts to this type from the input type.
Source§impl From<String> for VisibleString<'_>
impl From<String> for VisibleString<'_>
Source§fn from(s: String) -> VisibleString<'_>
fn from(s: String) -> VisibleString<'_>
Converts to this type from the input type.
Source§impl<'a> PartialEq for VisibleString<'a>
impl<'a> PartialEq for VisibleString<'a>
impl<'a> StructuralPartialEq for VisibleString<'a>
Source§impl TestValidCharset for VisibleString<'_>
impl TestValidCharset for VisibleString<'_>
Source§impl ToDer for VisibleString<'_>
Available on crate feature std only.
impl ToDer for VisibleString<'_>
Available on crate feature
std only.Source§fn to_der_len(&self) -> Result<usize, Error>
fn to_der_len(&self) -> Result<usize, Error>
Get the length of the object (including the header), when encoded
Source§fn write_der_header(
&self,
writer: &mut dyn Write,
) -> Result<usize, SerializeError>
fn write_der_header( &self, writer: &mut dyn Write, ) -> Result<usize, SerializeError>
Attempt to write the DER header to this writer.
Source§fn write_der_content(
&self,
writer: &mut dyn Write,
) -> Result<usize, SerializeError>
fn write_der_content( &self, writer: &mut dyn Write, ) -> Result<usize, SerializeError>
Attempt to write the DER content (all except header) to this writer.
Source§fn to_der_vec(&self) -> Result<Vec<u8>, SerializeError>
fn to_der_vec(&self) -> Result<Vec<u8>, SerializeError>
Write the DER encoded representation to a newly allocated
Vec<u8>.Source§fn to_der_vec_raw(&self) -> Result<Vec<u8>, SerializeError>
fn to_der_vec_raw(&self) -> Result<Vec<u8>, SerializeError>
Similar to using
to_vec, but uses provided values without changes.
This can generate an invalid encoding for a DER object.Source§fn write_der(&self, writer: &mut dyn Write) -> Result<usize, SerializeError>
fn write_der(&self, writer: &mut dyn Write) -> Result<usize, SerializeError>
Attempt to write the DER encoded representation (header and content) into this writer. Read more
Source§fn write_der_raw(&self, writer: &mut dyn Write) -> Result<usize, SerializeError>
fn write_der_raw(&self, writer: &mut dyn Write) -> Result<usize, SerializeError>
Similar to using
to_der, but uses provided values without changes.
This can generate an invalid encoding for a DER object.Source§impl<'a, 'b> TryFrom<&'b Any<'a>> for VisibleString<'a>
impl<'a, 'b> TryFrom<&'b Any<'a>> for VisibleString<'a>
Auto Trait Implementations§
impl<'a> Freeze for VisibleString<'a>
impl<'a> RefUnwindSafe for VisibleString<'a>
impl<'a> Send for VisibleString<'a>
impl<'a> Sync for VisibleString<'a>
impl<'a> Unpin for VisibleString<'a>
impl<'a> UnsafeUnpin for VisibleString<'a>
impl<'a> UnwindSafe for VisibleString<'a>
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