Struct holochain_integrity_types::op::RegisterDelete
source · pub struct RegisterDelete {
pub delete: SignedHashed<Delete>,
pub original_action: EntryCreationAction,
pub original_entry: Option<Entry>,
}
Expand description
Registers a deletion of an instance of an Entry
in the DHT.
This is the act of creating a Action::Delete
and
publishing it to the DHT.
Fields§
§delete: SignedHashed<Delete>
The signed and hashed Action::Delete
that registers the deletion.
original_action: EntryCreationAction
The original EntryCreationAction
that created
the original Entry
.
original_entry: Option<Entry>
The original Entry
that is being deleted.
This will be None
when the Entry
being
deleted is EntryVisibility::Private
.
Trait Implementations§
source§impl Clone for RegisterDelete
impl Clone for RegisterDelete
source§fn clone(&self) -> RegisterDelete
fn clone(&self) -> RegisterDelete
Returns a copy of the value. Read more
1.0.0 · 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 RegisterDelete
impl Debug for RegisterDelete
source§impl<'de> Deserialize<'de> for RegisterDelete
impl<'de> Deserialize<'de> for RegisterDelete
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 PartialEq<RegisterDelete> for RegisterDelete
impl PartialEq<RegisterDelete> for RegisterDelete
source§fn eq(&self, other: &RegisterDelete) -> bool
fn eq(&self, other: &RegisterDelete) -> bool
source§impl Serialize for RegisterDelete
impl Serialize for RegisterDelete
source§impl TryFrom<&RegisterDelete> for SerializedBytes
impl TryFrom<&RegisterDelete> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
source§fn try_from(t: &RegisterDelete) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &RegisterDelete) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
source§impl TryFrom<RegisterDelete> for SerializedBytes
impl TryFrom<RegisterDelete> for SerializedBytes
§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
source§fn try_from(t: RegisterDelete) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: RegisterDelete) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
source§impl TryFrom<SerializedBytes> for RegisterDelete
impl TryFrom<SerializedBytes> for RegisterDelete
§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
source§fn try_from(sb: SerializedBytes) -> Result<RegisterDelete, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<RegisterDelete, SerializedBytesError>
Performs the conversion.