[][src]Struct abci2::messages::abci::BlockID

pub struct BlockID {
    pub hash: Vec<u8>,
    pub parts_header: SingularPtrField<PartSetHeader>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

hash: Vec<u8>parts_header: SingularPtrField<PartSetHeader>unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl BlockID[src]

pub fn new() -> BlockID[src]

pub fn get_hash(&self) -> &[u8][src]

pub fn clear_hash(&mut self)[src]

pub fn set_hash(&mut self, v: Vec<u8>)[src]

pub fn mut_hash(&mut self) -> &mut Vec<u8>[src]

pub fn take_hash(&mut self) -> Vec<u8>[src]

pub fn get_parts_header(&self) -> &PartSetHeader[src]

pub fn clear_parts_header(&mut self)[src]

pub fn has_parts_header(&self) -> bool[src]

pub fn set_parts_header(&mut self, v: PartSetHeader)[src]

pub fn mut_parts_header(&mut self) -> &mut PartSetHeader[src]

pub fn take_parts_header(&mut self) -> PartSetHeader[src]

Trait Implementations

impl Clone for BlockID[src]

impl Default for BlockID[src]

impl<'a> Default for &'a BlockID[src]

impl PartialEq<BlockID> for BlockID[src]

impl Debug for BlockID[src]

impl StructuralPartialEq for BlockID[src]

impl Message for BlockID[src]

impl Clear for BlockID[src]

impl ProtobufValue for BlockID[src]

Auto Trait Implementations

impl Send for BlockID

impl Sync for BlockID

impl Unpin for BlockID

impl UnwindSafe for BlockID

impl RefUnwindSafe for BlockID

Blanket Implementations

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

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

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

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