pub struct MetadataResponse { /* private fields */ }Expand description
The decoded and decrypted metadata response, holding all the properties. This response object is returned from this action.
Implementations§
Source§impl<'a> MetadataResponse
impl<'a> MetadataResponse
Sourcepub fn new(metadata: MetadataData, size: Option<u64>, nonce: Vec<u8>) -> Self
pub fn new(metadata: MetadataData, size: Option<u64>, nonce: Vec<u8>) -> Self
Construct a new response with the given metadata and nonce.
pub fn from( raw: &RawMetadataResponse, key_set: &KeySet, nonce: Vec<u8>, ) -> Result<Self, MetadataError>
Sourcepub fn metadata(&self) -> &MetadataData
pub fn metadata(&self) -> &MetadataData
Get the metadata.
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