pub struct CommunicationInfo {
pub communication_info_entries: Vec<CommunicationInfoKeyValue>,
}Expand description
CommunicationInfo contains application-level identifying information about a participant (Owner or Helper).
§Purpose
This message is used to:
- present identifying details to users during pairing
- assist users in verifying the identity of the counterparty
- provide contextual metadata for UI display
§Semantics
- The contents are entirely application-defined
- The protocol does not validate, interpret, or enforce any schema
- Entries are independent key-value pairs
§Security Considerations
- This data MUST NOT be relied upon for authentication
- Authentication is handled outside the protocol (e.g., in-person, KYC, or application-specific mechanisms)
§Privacy Considerations
- Applications SHOULD avoid including sensitive information unless necessary for the user experience
- Users should be informed about what data is being shared
§Interoperability
While no schema is enforced, using common keys improves usability across implementations.
Fields§
§communication_info_entries: Vec<CommunicationInfoKeyValue>List of key-value entries describing the participant.
Each entry represents one piece of identifying information.
Trait Implementations§
Source§impl Clone for CommunicationInfo
impl Clone for CommunicationInfo
Source§fn clone(&self) -> CommunicationInfo
fn clone(&self) -> CommunicationInfo
Returns a duplicate 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 Debug for CommunicationInfo
impl Debug for CommunicationInfo
Source§impl Default for CommunicationInfo
impl Default for CommunicationInfo
Source§impl Message for CommunicationInfo
impl Message for CommunicationInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CommunicationInfo
impl PartialEq for CommunicationInfo
impl StructuralPartialEq for CommunicationInfo
Auto Trait Implementations§
impl Freeze for CommunicationInfo
impl RefUnwindSafe for CommunicationInfo
impl Send for CommunicationInfo
impl Sync for CommunicationInfo
impl Unpin for CommunicationInfo
impl UnsafeUnpin for CommunicationInfo
impl UnwindSafe for CommunicationInfo
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