[][src]Struct exonum::helpers::ValidatorId

pub struct ValidatorId(pub u16);

Validators identifier.

Methods

impl ValidatorId[src]

pub fn zero() -> Self[src]

Returns zero value of the validator id.

Examples

use exonum::helpers::ValidatorId;

let id = ValidatorId::zero();
assert_eq!(0, id.0);

Trait Implementations

impl BinaryValue for ValidatorId[src]

impl Clone for ValidatorId[src]

impl Copy for ValidatorId[src]

impl Debug for ValidatorId[src]

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

impl Display for ValidatorId[src]

impl Eq for ValidatorId[src]

impl From<ValidatorId> for u16[src]

impl From<ValidatorId> for usize[src]

impl Hash for ValidatorId[src]

impl Ord for ValidatorId[src]

impl PartialEq<ValidatorId> for ValidatorId[src]

impl PartialOrd<ValidatorId> for ValidatorId[src]

impl ProtobufConvert for ValidatorId[src]

type ProtoStruct = u32

Type generated from the Protobuf definition.

impl Serialize for ValidatorId[src]

impl StructuralEq for ValidatorId[src]

impl StructuralPartialEq for ValidatorId[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> 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> ToString for T where
    T: Display + ?Sized
[src]

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