pub struct Text<'a> {
pub more: bool,
pub text_chars: &'a [u8],
}Expand description
text() object (Table 46): a run of text_char bytes (EN 300 468 Annex A).
The _last (9F 88 03) and _more (9F 88 04) tags share this one body;
Text::more selects which tag is written and is set from the parsed tag.
Fields§
§more: booltrue = text_more (more APDUs follow); false = text_last.
text_chars: &'a [u8]The text_char bytes (may be empty: a null text object).
Implementations§
Trait Implementations§
impl<'a> Eq for Text<'a>
Source§impl Serialize for Text<'_>
impl Serialize for Text<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for Text<'a>
Auto Trait Implementations§
impl<'a> Freeze for Text<'a>
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Send for Text<'a>
impl<'a> Sync for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnsafeUnpin for Text<'a>
impl<'a> UnwindSafe for Text<'a>
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