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
sourceimpl 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
sourceimpl Clone for MetadataResponsePayload
impl Clone for MetadataResponsePayload
sourcefn clone(&self) -> MetadataResponsePayload
fn clone(&self) -> MetadataResponsePayload
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MetadataResponsePayload
impl Debug for MetadataResponsePayload
sourceimpl<'de> Deserialize<'de> for MetadataResponsePayload
impl<'de> Deserialize<'de> for MetadataResponsePayload
sourcefn 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
sourceimpl PartialEq<MetadataResponsePayload> for MetadataResponsePayload
impl PartialEq<MetadataResponsePayload> for MetadataResponsePayload
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &MetadataResponsePayload) -> bool
fn ne(&self, other: &MetadataResponsePayload) -> bool
This method tests for !=.
sourceimpl Serialize for MetadataResponsePayload
impl Serialize 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more