Enum data_chain::block_identifier::BlockIdentifier [] [src]

pub enum BlockIdentifier {
    ImmutableData(Digest),
    StructuredData(DigestSdName),
    Link(LinkDescriptor),
}

Dummy data identifiers for this crate

Variants

hash is also name of data stored locally

hash name (identity + tag) (stored localy as name in data store)

This array represents this nodes current close roup The array is all nodes xored together This is unique to this node, but known by all nodes connected to it in this group.

Methods

impl BlockIdentifier
[src]

[src]

Define a name getter as data identifiers may contain more info that does not change the name (such as with structured data and versions etc.) In this module we do not care about other info and any validation is outwith this area Therefore we will delete before insert etc. based on name alone of the data element

[src]

structured data name != hash of the data or block

Is this a link

[src]

Is this a block

Trait Implementations

impl Encodable for BlockIdentifier
[src]

[src]

Serialize a value using an Encoder.

impl Decodable for BlockIdentifier
[src]

[src]

Deserialize a value using a Decoder.

impl PartialEq for BlockIdentifier
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for BlockIdentifier
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for BlockIdentifier
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations