pub struct SignedRecord {
pub bytes: Vec<u8>,
pub encoding: RecordEncoding,
}Expand description
A signed record and the encoding it arrived in.
Fields§
§bytes: Vec<u8>The record itself — the bytes the signature covers, never re-encoded.
encoding: RecordEncodingHow the station wrote it.
Implementations§
Source§impl SignedRecord
impl SignedRecord
Sourcepub fn as_text(&self) -> Result<String, SignedDataError>
pub fn as_text(&self) -> Result<String, SignedDataError>
The record as text, which is what OCMF and EDL both are.
§Errors
SignedDataError when the record is not UTF-8, which means it is a binary format
and bytes is the right field for it.
Trait Implementations§
Source§impl Clone for SignedRecord
impl Clone for SignedRecord
Source§impl Debug for SignedRecord
impl Debug for SignedRecord
impl Eq for SignedRecord
Source§impl PartialEq for SignedRecord
impl PartialEq for SignedRecord
impl StructuralPartialEq for SignedRecord
Auto Trait Implementations§
impl Forget for SignedRecord
impl Freeze for SignedRecord
impl Move for SignedRecord
impl RefUnwindSafe for SignedRecord
impl Send for SignedRecord
impl Sync for SignedRecord
impl Unpin for SignedRecord
impl UnsafeUnpin for SignedRecord
impl UnwindSafe for SignedRecord
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