pub struct SubstanceRef {
pub uri: String,
pub content_hash: String,
pub medium: SubstanceMedium,
}Expand description
A pointer to the fat substance an Act governs. The act is the thin
record; this binds it to a specific version of the real content.
Fields§
§uri: StringLocator of the substance (git commit hash, forum path, URL, file path).
content_hash: StringContent hash binding the act to a specific version of the substance, so the governance record can’t silently drift from what it attests.
medium: SubstanceMediumWhat medium the substance lives in.
Implementations§
Source§impl SubstanceRef
impl SubstanceRef
Trait Implementations§
Source§impl Clone for SubstanceRef
impl Clone for SubstanceRef
Source§impl Debug for SubstanceRef
impl Debug for SubstanceRef
Source§impl<'de> Deserialize<'de> for SubstanceRef
impl<'de> Deserialize<'de> for SubstanceRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SubstanceRef
Source§impl PartialEq for SubstanceRef
impl PartialEq for SubstanceRef
Source§impl Serialize for SubstanceRef
impl Serialize for SubstanceRef
impl StructuralPartialEq for SubstanceRef
Auto Trait Implementations§
impl Freeze for SubstanceRef
impl RefUnwindSafe for SubstanceRef
impl Send for SubstanceRef
impl Sync for SubstanceRef
impl Unpin for SubstanceRef
impl UnsafeUnpin for SubstanceRef
impl UnwindSafe for SubstanceRef
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