pub struct OwnedNodeIdentityPayload {
pub timestamp: u32,
pub role: NodeRole,
pub capabilities: Capabilities,
pub name: Option<String>,
pub options: Option<Vec<u8>>,
pub signature: Option<[u8; 64]>,
}Fields§
§timestamp: u32§role: NodeRole§capabilities: Capabilities§name: Option<String>§options: Option<Vec<u8>>§signature: Option<[u8; 64]>Implementations§
Source§impl OwnedNodeIdentityPayload
impl OwnedNodeIdentityPayload
pub fn as_borrowed(&self) -> NodeIdentityPayload<'_>
Trait Implementations§
Source§impl Clone for OwnedNodeIdentityPayload
impl Clone for OwnedNodeIdentityPayload
Source§fn clone(&self) -> OwnedNodeIdentityPayload
fn clone(&self) -> OwnedNodeIdentityPayload
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OwnedNodeIdentityPayload
impl Debug for OwnedNodeIdentityPayload
Source§impl From<NodeIdentityPayload<'_>> for OwnedNodeIdentityPayload
impl From<NodeIdentityPayload<'_>> for OwnedNodeIdentityPayload
Source§fn from(value: NodeIdentityPayload<'_>) -> Self
fn from(value: NodeIdentityPayload<'_>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OwnedNodeIdentityPayload
impl PartialEq for OwnedNodeIdentityPayload
impl Eq for OwnedNodeIdentityPayload
impl StructuralPartialEq for OwnedNodeIdentityPayload
Auto Trait Implementations§
impl Freeze for OwnedNodeIdentityPayload
impl RefUnwindSafe for OwnedNodeIdentityPayload
impl Send for OwnedNodeIdentityPayload
impl Sync for OwnedNodeIdentityPayload
impl Unpin for OwnedNodeIdentityPayload
impl UnwindSafe for OwnedNodeIdentityPayload
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)