Struct holochain_zome_types::element::Element
source · [−]pub struct Element { /* private fields */ }
Expand description
a chain element containing the signed header along with the entry if the header type has one.
Implementations
Mutable reference to the Header content. This is useless and dangerous in production usage. Guaranteed to make hashes and signatures mismatch whatever the Header is mutated to (at least). This may be useful for tests that rely heavily on mocked and fixturated data.
Mutable reference to the ElementEntry. This is useless and dangerous in production usage. Guaranteed to make hashes and signatures mismatch whatever the ElementEntry is mutated to (at least). This may be useful for tests that rely heavily on mocked and fixturated data.
Raw element constructor. Used only when we know that the values are valid.
If the Element contains private entry data, set the ElementEntry to Hidden so that it cannot be leaked
Break this element into its components
The inner signed-header
Access the header address from this element’s signed header
Access the HeaderHashed from this element’s signed header portion
Access the Entry portion of this element as an ElementEntry, which includes the context around the presence or absence of the entry.
Trait Implementations
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
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Element
impl UnwindSafe for Element
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more