pub trait WithMetadataHashable {
    // Required methods
    fn struct_metadata(&mut self) -> Result<&mut StructMetadata, ErrorInfo>;
    fn struct_metadata_err(&self) -> Result<&StructMetadata, ErrorInfo>;
    fn version(&self) -> Result<i32, ErrorInfo>;
    fn time(&self) -> Result<&i64, ErrorInfo>;
    fn hash_or(&self) -> Hash;
    fn hash_bytes(&self) -> Result<Vec<u8>, ErrorInfo>;
    fn hash_vec(&self) -> Vec<u8>;
    fn hash_hex(&self) -> Result<String, ErrorInfo>;
    fn hash_hex_or_missing(&self) -> String;
    fn with_hash(&mut self) -> &mut Self;
    fn set_hash(&mut self, hash: Hash) -> Result<(), ErrorInfo>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§