Struct nucypher_core::MetadataResponsePayload
source · pub struct MetadataResponsePayload {
pub timestamp_epoch: u32,
pub announce_nodes: Box<[NodeMetadata]>,
}Expand description
Payload of the metadata response.
Fields§
§timestamp_epoch: u32The timestamp of the most recent fleet state (the one consisting of the nodes that are being sent).
announce_nodes: Box<[NodeMetadata]>A list of node metadata to announce.
Implementations§
source§impl MetadataResponsePayload
impl MetadataResponsePayload
sourcepub fn new(timestamp_epoch: u32, announce_nodes: &[NodeMetadata]) -> Self
pub fn new(timestamp_epoch: u32, announce_nodes: &[NodeMetadata]) -> Self
Creates the new metadata response payload.
Trait Implementations§
source§impl Clone for MetadataResponsePayload
impl Clone for MetadataResponsePayload
source§fn clone(&self) -> MetadataResponsePayload
fn clone(&self) -> MetadataResponsePayload
Returns a copy 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 MetadataResponsePayload
impl Debug for MetadataResponsePayload
source§impl<'de> Deserialize<'de> for MetadataResponsePayload
impl<'de> Deserialize<'de> for MetadataResponsePayload
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<MetadataResponsePayload> for MetadataResponsePayload
impl PartialEq<MetadataResponsePayload> for MetadataResponsePayload
source§fn eq(&self, other: &MetadataResponsePayload) -> bool
fn eq(&self, other: &MetadataResponsePayload) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MetadataResponsePayload
impl Serialize for MetadataResponsePayload
impl Eq for MetadataResponsePayload
impl StructuralEq for MetadataResponsePayload
impl StructuralPartialEq for MetadataResponsePayload
Auto Trait Implementations§
impl RefUnwindSafe for MetadataResponsePayload
impl Send for MetadataResponsePayload
impl Sync for MetadataResponsePayload
impl Unpin for MetadataResponsePayload
impl UnwindSafe for MetadataResponsePayload
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