pub struct ContentIdentity {
pub hash: String,
}Expand description
Content identity based on hash
Fields§
§hash: StringSHA-256 hash of the content
Implementations§
Trait Implementations§
Source§impl Clone for ContentIdentity
impl Clone for ContentIdentity
Source§impl Debug for ContentIdentity
impl Debug for ContentIdentity
Source§impl<'de> Deserialize<'de> for ContentIdentity
impl<'de> Deserialize<'de> for ContentIdentity
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
Source§impl Display for ContentIdentity
impl Display for ContentIdentity
impl Eq for ContentIdentity
Source§impl Hash for ContentIdentity
impl Hash for ContentIdentity
Source§impl PartialEq for ContentIdentity
impl PartialEq for ContentIdentity
Source§impl Serialize for ContentIdentity
impl Serialize for ContentIdentity
impl StructuralPartialEq for ContentIdentity
Auto Trait Implementations§
impl Freeze for ContentIdentity
impl RefUnwindSafe for ContentIdentity
impl Send for ContentIdentity
impl Sync for ContentIdentity
impl Unpin for ContentIdentity
impl UnsafeUnpin for ContentIdentity
impl UnwindSafe for ContentIdentity
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