Struct concordium_std::MetadataUrl
source · pub struct MetadataUrl {
pub url: String,
pub hash: Option<[u8; 32]>,
}
Expand description
The location of the metadata and an optional hash of the content.
Fields§
§url: String
The URL following the specification RFC1738.
hash: Option<[u8; 32]>
A optional hash of the content.
Trait Implementations§
source§impl Clone for MetadataUrl
impl Clone for MetadataUrl
source§fn clone(&self) -> MetadataUrl
fn clone(&self) -> MetadataUrl
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 MetadataUrl
impl Debug for MetadataUrl
source§impl Deserial for MetadataUrl
impl Deserial for MetadataUrl
source§impl PartialEq for MetadataUrl
impl PartialEq for MetadataUrl
source§fn eq(&self, other: &MetadataUrl) -> bool
fn eq(&self, other: &MetadataUrl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SchemaType for MetadataUrl
impl SchemaType for MetadataUrl
source§impl Serial for MetadataUrl
impl Serial for MetadataUrl
impl Eq for MetadataUrl
impl StructuralPartialEq for MetadataUrl
Auto Trait Implementations§
impl RefUnwindSafe for MetadataUrl
impl Send for MetadataUrl
impl Sync for MetadataUrl
impl Unpin for MetadataUrl
impl UnwindSafe for MetadataUrl
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<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
source§fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
Attempt to read a structure from a given source and state, failing if
an error occurs during deserialization or reading.