pub struct ContentReference {
pub id: String,
pub sha256: String,
}Expand description
Immutable identity of a scientific input artifact.
Fields§
§id: String§sha256: StringImplementations§
Source§impl ContentReference
impl ContentReference
pub fn validate(&self) -> Result<(), ContentReferenceError>
Trait Implementations§
Source§impl Clone for ContentReference
impl Clone for ContentReference
Source§fn clone(&self) -> ContentReference
fn clone(&self) -> ContentReference
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 ContentReference
impl Debug for ContentReference
Source§impl<'de> Deserialize<'de> for ContentReference
impl<'de> Deserialize<'de> for ContentReference
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 ContentReference
Source§impl PartialEq for ContentReference
impl PartialEq for ContentReference
Source§impl Serialize for ContentReference
impl Serialize for ContentReference
impl StructuralPartialEq for ContentReference
Auto Trait Implementations§
impl Freeze for ContentReference
impl RefUnwindSafe for ContentReference
impl Send for ContentReference
impl Sync for ContentReference
impl Unpin for ContentReference
impl UnsafeUnpin for ContentReference
impl UnwindSafe for ContentReference
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