[]Struct orga::abci::messages::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

Implementations

impl BlockID

pub fn new() -> BlockID

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

pub fn clear_hash(&mut self)

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

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

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

pub fn get_parts_header(&self) -> &PartSetHeader

pub fn clear_parts_header(&mut self)

pub fn has_parts_header(&self) -> bool

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

pub fn mut_parts_header(&mut self) -> &mut PartSetHeader

pub fn take_parts_header(&mut self) -> PartSetHeader

Trait Implementations

impl Clear for BlockID

impl Clone for BlockID

impl Debug for BlockID

impl<'a> Default for &'a BlockID

impl Default for BlockID

impl Message for BlockID

impl PartialEq<BlockID> for BlockID

impl ProtobufValue for BlockID

Auto Trait Implementations

impl RefUnwindSafe for BlockID

impl Send for BlockID

impl Sync for BlockID

impl Terminated for BlockID

impl Unpin for BlockID

impl UnwindSafe for BlockID

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> 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> Same<T> for T

type Output = T

Should always be Self

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