pub struct ChatIdentityBindingV1 {
pub key_mode: ChatKeyMode,
pub xonly_public_key: [u8; 32],
pub generation: u32,
}Fields§
§key_mode: ChatKeyMode§xonly_public_key: [u8; 32]§generation: u32Implementations§
Source§impl ChatIdentityBindingV1
impl ChatIdentityBindingV1
Sourcepub fn validate(&self) -> Result<(), ChatProtocolError>
pub fn validate(&self) -> Result<(), ChatProtocolError>
Validate a programmatically constructed version-1 identity binding.
Parsing and encoding are canonical; this method lets downstream users enforce the same invariant without serializing the value first.
Trait Implementations§
Source§impl Clone for ChatIdentityBindingV1
impl Clone for ChatIdentityBindingV1
Source§fn clone(&self) -> ChatIdentityBindingV1
fn clone(&self) -> ChatIdentityBindingV1
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 moreimpl Copy for ChatIdentityBindingV1
Source§impl Debug for ChatIdentityBindingV1
impl Debug for ChatIdentityBindingV1
impl Eq for ChatIdentityBindingV1
Source§impl PartialEq for ChatIdentityBindingV1
impl PartialEq for ChatIdentityBindingV1
impl StructuralPartialEq for ChatIdentityBindingV1
Auto Trait Implementations§
impl Freeze for ChatIdentityBindingV1
impl RefUnwindSafe for ChatIdentityBindingV1
impl Send for ChatIdentityBindingV1
impl Sync for ChatIdentityBindingV1
impl Unpin for ChatIdentityBindingV1
impl UnsafeUnpin for ChatIdentityBindingV1
impl UnwindSafe for ChatIdentityBindingV1
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