pub struct CharacterString {
pub constraints: Vec<Constraint>,
pub ty: CharacterStringType,
}
Expand description
Representation of an ASN1 Character String type data element with corresponding constraints. ASN1 Character String types include IA5String, UTF8String, VideotexString. As defined in Rec. ITU-T X.680 (02/2021) §39-§44
Fields§
§constraints: Vec<Constraint>
§ty: CharacterStringType
Trait Implementations§
Source§impl Clone for CharacterString
impl Clone for CharacterString
Source§fn clone(&self) -> CharacterString
fn clone(&self) -> CharacterString
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Constrainable for CharacterString
impl Constrainable for CharacterString
Source§fn constraints(&self) -> &Vec<Constraint>
fn constraints(&self) -> &Vec<Constraint>
returns a reference to the type’s constraints
Source§fn constraints_mut(&mut self) -> &mut Vec<Constraint>
fn constraints_mut(&mut self) -> &mut Vec<Constraint>
returns a mutable reference to the type’s constraints
Source§impl Debug for CharacterString
impl Debug for CharacterString
Source§impl From<(&str, Option<Vec<Constraint>>)> for CharacterString
impl From<(&str, Option<Vec<Constraint>>)> for CharacterString
Source§impl PartialEq for CharacterString
impl PartialEq for CharacterString
impl StructuralPartialEq for CharacterString
Auto Trait Implementations§
impl Freeze for CharacterString
impl RefUnwindSafe for CharacterString
impl Send for CharacterString
impl Sync for CharacterString
impl Unpin for CharacterString
impl UnwindSafe for CharacterString
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)