Struct nucypher_core::MetadataResponse
source · pub struct MetadataResponse { /* private fields */ }Expand description
A response returned by an Ursula containing known node metadata.
Implementations§
source§impl MetadataResponse
impl MetadataResponse
sourcepub fn new(signer: &Signer, payload: &MetadataResponsePayload) -> Self
pub fn new(signer: &Signer, payload: &MetadataResponsePayload) -> Self
Creates and signs a new metadata response.
sourcepub fn verify(
self,
verifying_pk: &PublicKey
) -> Result<MetadataResponsePayload, VerificationError>
pub fn verify( self, verifying_pk: &PublicKey ) -> Result<MetadataResponsePayload, VerificationError>
Verifies the metadata response and returns the contained payload.
Trait Implementations§
source§impl Clone for MetadataResponse
impl Clone for MetadataResponse
source§fn clone(&self) -> MetadataResponse
fn clone(&self) -> MetadataResponse
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 MetadataResponse
impl Debug for MetadataResponse
source§impl<'de> Deserialize<'de> for MetadataResponse
impl<'de> Deserialize<'de> for MetadataResponse
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<MetadataResponse> for MetadataResponse
impl PartialEq<MetadataResponse> for MetadataResponse
source§fn eq(&self, other: &MetadataResponse) -> bool
fn eq(&self, other: &MetadataResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.