[][src]Struct exonum::blockchain::AdditionalHeaders

pub struct AdditionalHeaders { /* fields omitted */ }

Expandable set of headers allowed to be added to the block.

In a serialized form, headers are represented as a sequence of pairs, in which first element is a string (header name), and the second element is a byte sequence (deserialization format for which depends on the header name).

Methods

impl AdditionalHeaders[src]

pub fn new() -> Self[src]

New instance of AdditionalHeaders.

pub fn insert<K: BlockHeaderKey>(&mut self, value: K::Value)[src]

Insert new header to the map.

pub fn get<K: BlockHeaderKey>(&self) -> Option<&[u8]>[src]

Get header from the map.

Trait Implementations

impl Clone for AdditionalHeaders[src]

impl Debug for AdditionalHeaders[src]

impl Default for AdditionalHeaders[src]

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

impl Eq for AdditionalHeaders[src]

impl Ord for AdditionalHeaders[src]

impl PartialEq<AdditionalHeaders> for AdditionalHeaders[src]

impl PartialOrd<AdditionalHeaders> for AdditionalHeaders[src]

impl ProtobufConvert for AdditionalHeaders[src]

type ProtoStruct = AdditionalHeaders

Type generated from the Protobuf definition.

impl Serialize for AdditionalHeaders[src]

impl StructuralEq for AdditionalHeaders[src]

impl StructuralPartialEq for AdditionalHeaders[src]

Auto Trait Implementations

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> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

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

impl<T> InitializableFromZeroed for T where
    T: Default

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>,