linera_sdk::linera_base_types

Trait BcsHashable

Source
pub trait BcsHashable<'de>: Serialize + Deserialize<'de> { }
Expand description

Activate the blanket implementation of Hashable based on serde and BCS.

  • We use serde_name to extract a seed from the name of structs and enums.
  • We use BCS to generate canonical bytes suitable for hashing.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BcsHashable<'_> for Operation

Source§

impl BcsHashable<'_> for Block

Source§

impl BcsHashable<'_> for Timeout

Source§

impl BcsHashable<'_> for TimeoutInner

Source§

impl BcsHashable<'_> for IncomingBundle

Source§

impl BcsHashable<'_> for OperationResult

Source§

impl BcsHashable<'_> for OutgoingMessage

Source§

impl<'de> BcsHashable<'de> for PreviousMessageBlocksMap<'de>

Implementors§