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 for MetadataResponse
impl PartialEq for MetadataResponse
Source§impl<'a> ProtocolObject<'a> for MetadataResponse
impl<'a> ProtocolObject<'a> for MetadataResponse
Source§impl Serialize for MetadataResponse
impl Serialize for MetadataResponse
impl Eq for MetadataResponse
impl StructuralPartialEq for MetadataResponse
Auto Trait Implementations§
impl Freeze for MetadataResponse
impl RefUnwindSafe for MetadataResponse
impl Send for MetadataResponse
impl Sync for MetadataResponse
impl Unpin for MetadataResponse
impl UnwindSafe for MetadataResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBytes for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more