Struct hdk::prelude::Delete[][src]

pub struct Delete {
    pub author: HoloHash<Agent>,
    pub timestamp: Timestamp,
    pub header_seq: u32,
    pub prev_header: HoloHash<Header>,
    pub deletes_address: HoloHash<Header>,
    pub deletes_entry_address: HoloHash<Entry>,
}

Declare that a previously published Header should be nullified and considered deleted.

Via the associated [DhtOp], this also has an effect on Entries: namely, that a previously published Entry will become inaccessible if all of its Headers are marked deleted.

Fields

author: HoloHash<Agent>timestamp: Timestampheader_seq: u32prev_header: HoloHash<Header>deletes_address: HoloHash<Header>

Address of the Element being deleted

deletes_entry_address: HoloHash<Entry>

Implementations

impl Delete[src]

pub fn from_builder(
    common: HeaderBuilderCommon,
    deletes_address: HoloHash<Header>,
    deletes_entry_address: HoloHash<Entry>
) -> Delete
[src]

Trait Implementations

impl Clone for Delete[src]

impl Debug for Delete[src]

impl<'de> Deserialize<'de> for Delete[src]

impl Eq for Delete[src]

impl From<(Delete, HeaderBuilderCommon)> for Delete[src]

impl HeaderBuilder<Delete> for Delete[src]

impl HeaderInner for Delete[src]

impl PartialEq<Delete> for Delete[src]

impl Serialize for Delete[src]

impl StructuralEq for Delete[src]

impl StructuralPartialEq for Delete[src]

impl<'_> TryFrom<&'_ Delete> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a Header> for &'a Delete[src]

type Error = WrongHeaderError

The type returned in the event of a conversion error.

impl TryFrom<Delete> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<Header> for Delete[src]

type Error = WrongHeaderError

The type returned in the event of a conversion error.

impl TryFrom<SerializedBytes> for Delete[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Delete

impl Send for Delete

impl Sync for Delete

impl Unpin for Delete

impl UnwindSafe for Delete

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,