pub struct RecipientRecordV1 {
pub record_length: u32,
pub profile_id: u16,
pub recipient_identity_type: u16,
pub flags: u32,
pub recipient_identity_length: u32,
pub profile_payload_length: u32,
pub recipient_identity_digest: [u8; 32],
pub recipient_identity_bytes: Vec<u8>,
pub profile_payload_bytes: Vec<u8>,
}Fields§
§record_length: u32§profile_id: u16§recipient_identity_type: u16§flags: u32§recipient_identity_length: u32§profile_payload_length: u32§recipient_identity_digest: [u8; 32]§recipient_identity_bytes: Vec<u8>§profile_payload_bytes: Vec<u8>Implementations§
Source§impl RecipientRecordV1
impl RecipientRecordV1
pub fn with_record_length(self, record_length: u32) -> Self
pub fn to_bytes(&self) -> Result<Vec<u8>, FormatError>
pub fn parse(bytes: &[u8]) -> Result<(Self, usize), FormatError>
Trait Implementations§
Source§impl Clone for RecipientRecordV1
impl Clone for RecipientRecordV1
Source§fn clone(&self) -> RecipientRecordV1
fn clone(&self) -> RecipientRecordV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecipientRecordV1
impl Debug for RecipientRecordV1
impl Eq for RecipientRecordV1
Source§impl PartialEq for RecipientRecordV1
impl PartialEq for RecipientRecordV1
Source§fn eq(&self, other: &RecipientRecordV1) -> bool
fn eq(&self, other: &RecipientRecordV1) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecipientRecordV1
Auto Trait Implementations§
impl Freeze for RecipientRecordV1
impl RefUnwindSafe for RecipientRecordV1
impl Send for RecipientRecordV1
impl Sync for RecipientRecordV1
impl Unpin for RecipientRecordV1
impl UnsafeUnpin for RecipientRecordV1
impl UnwindSafe for RecipientRecordV1
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