pub struct Vertex {
pub codec_version: u16,
pub chain_id: Id,
pub height: u64,
pub epoch: u32,
pub parent_ids: Vec<Id>,
pub txs: Vec<Vec<u8>>,
}
Expand description
Vertex represents a set of transactions for Avalanche X-chain. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/snow/engine/avalanche/vertex#Build
Fields
codec_version: u16
chain_id: Id
height: u64
epoch: u32
parent_ids: Vec<Id>
txs: Vec<Vec<u8>>
Trait Implementations
impl Eq for Vertex
impl StructuralEq for Vertex
impl StructuralPartialEq for Vertex
Auto Trait Implementations
impl RefUnwindSafe for Vertex
impl Send for Vertex
impl Sync for Vertex
impl Unpin for Vertex
impl UnwindSafe for Vertex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.