pub struct RetrievalMarker {
pub hash: String,
pub alg: &'static str,
pub namespace: String,
pub bytes: usize,
pub ttl_seconds: Option<u64>,
}Expand description
One retrieval marker’s worth of metadata, per interfaces.md’s Retrieval Marker Grammar:
[tokenfold:retrieve hash=<hex> alg=sha256 namespace=<ns> bytes=<n> ttl=<seconds>].
Fields§
§hash: String§alg: &'static str§namespace: String§bytes: usize§ttl_seconds: Option<u64>Trait Implementations§
Source§impl Clone for RetrievalMarker
impl Clone for RetrievalMarker
Source§fn clone(&self) -> RetrievalMarker
fn clone(&self) -> RetrievalMarker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RetrievalMarker
impl Debug for RetrievalMarker
impl Eq for RetrievalMarker
Source§impl PartialEq for RetrievalMarker
impl PartialEq for RetrievalMarker
impl StructuralPartialEq for RetrievalMarker
Auto Trait Implementations§
impl Freeze for RetrievalMarker
impl RefUnwindSafe for RetrievalMarker
impl Send for RetrievalMarker
impl Sync for RetrievalMarker
impl Unpin for RetrievalMarker
impl UnsafeUnpin for RetrievalMarker
impl UnwindSafe for RetrievalMarker
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.