pub struct RetrievalReference {
pub hash: String,
pub namespace: Option<String>,
}Expand description
A validated reference to one stored original. Accepted inputs are a raw SHA-256 hash,
the legacy [tokenfold:retrieve ...] marker, or the JSON {"$tf_ref": ...} marker
emitted by lossy JSON pruning.
Fields§
§hash: String§namespace: Option<String>Trait Implementations§
Source§impl Clone for RetrievalReference
impl Clone for RetrievalReference
Source§fn clone(&self) -> RetrievalReference
fn clone(&self) -> RetrievalReference
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 RetrievalReference
impl Debug for RetrievalReference
impl Eq for RetrievalReference
Source§impl PartialEq for RetrievalReference
impl PartialEq for RetrievalReference
impl StructuralPartialEq for RetrievalReference
Auto Trait Implementations§
impl Freeze for RetrievalReference
impl RefUnwindSafe for RetrievalReference
impl Send for RetrievalReference
impl Sync for RetrievalReference
impl Unpin for RetrievalReference
impl UnsafeUnpin for RetrievalReference
impl UnwindSafe for RetrievalReference
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.