Struct rusp::usp_record::Record
source · pub struct Record<'a> {
pub version: Option<Cow<'a, str>>,
pub to_id: Option<Cow<'a, str>>,
pub from_id: Option<Cow<'a, str>>,
pub payload_security: Option<PayloadSecurity>,
pub mac_signature: Option<Cow<'a, [u8]>>,
pub sender_cert: Option<Cow<'a, [u8]>>,
pub record_type: OneOfrecord_type<'a>,
}
Fields§
§version: Option<Cow<'a, str>>
§to_id: Option<Cow<'a, str>>
§from_id: Option<Cow<'a, str>>
§payload_security: Option<PayloadSecurity>
§mac_signature: Option<Cow<'a, [u8]>>
§sender_cert: Option<Cow<'a, [u8]>>
§record_type: OneOfrecord_type<'a>
Trait Implementations§
source§impl<'a> MessageRead<'a> for Record<'a>
impl<'a> MessageRead<'a> for Record<'a>
source§fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of
Self
by reading from the given bytes
via the given reader. Read more