pub struct RawSignedMetadata<D, M> { /* private fields */ }Expand description
Unverified raw metadata with attached signatures and type information identifying the metadata’s type and serialization format.
Implementations§
Source§impl<D, M> RawSignedMetadata<D, M>
impl<D, M> RawSignedMetadata<D, M>
Sourcepub fn new(bytes: Vec<u8>) -> Self
pub fn new(bytes: Vec<u8>) -> Self
Create a new RawSignedMetadata using the provided bytes.
Sourcepub fn parse_untrusted(&self) -> Result<SignedMetadata<D, M>>
pub fn parse_untrusted(&self) -> Result<SignedMetadata<D, M>>
Parse this metadata.
WARNING: This does not verify signatures, so it exposes users to potential parser exploits.
Trait Implementations§
Source§impl<D: Clone, M: Clone> Clone for RawSignedMetadata<D, M>
impl<D: Clone, M: Clone> Clone for RawSignedMetadata<D, M>
Source§fn clone(&self) -> RawSignedMetadata<D, M>
fn clone(&self) -> RawSignedMetadata<D, M>
Returns a duplicate 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 moreimpl<D: Eq, M: Eq> Eq for RawSignedMetadata<D, M>
impl<D, M> StructuralPartialEq for RawSignedMetadata<D, M>
Auto Trait Implementations§
impl<D, M> Freeze for RawSignedMetadata<D, M>
impl<D, M> RefUnwindSafe for RawSignedMetadata<D, M>where
D: RefUnwindSafe,
M: RefUnwindSafe,
impl<D, M> Send for RawSignedMetadata<D, M>
impl<D, M> Sync for RawSignedMetadata<D, M>
impl<D, M> Unpin for RawSignedMetadata<D, M>
impl<D, M> UnsafeUnpin for RawSignedMetadata<D, M>
impl<D, M> UnwindSafe for RawSignedMetadata<D, M>where
D: UnwindSafe,
M: UnwindSafe,
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