Struct hdk::prelude::AgentActivity[][src]

pub struct AgentActivity {
    pub valid_activity: Vec<(u32, HoloHash<Header>), Global>,
    pub rejected_activity: Vec<(u32, HoloHash<Header>), Global>,
    pub status: ChainStatus,
    pub highest_observed: Option<HighestObserved>,
    pub warrants: Vec<Warrant, Global>,
}

An agents chain elements returned from a agent_activity_query

Fields

valid_activity: Vec<(u32, HoloHash<Header>), Global>

Valid headers on this chain.

rejected_activity: Vec<(u32, HoloHash<Header>), Global>

Rejected headers on this chain.

status: ChainStatus

The status of this chain.

highest_observed: Option<HighestObserved>

The highest chain header that has been observed by this authority.

warrants: Vec<Warrant, Global>

Warrants about this AgentActivity. Placeholder for future.

Trait Implementations

impl Clone for AgentActivity[src]

impl Debug for AgentActivity[src]

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

impl PartialEq<AgentActivity> for AgentActivity[src]

impl Serialize for AgentActivity[src]

impl StructuralPartialEq for AgentActivity[src]

impl<'_> TryFrom<&'_ AgentActivity> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<AgentActivity> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<SerializedBytes> for AgentActivity[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

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: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument 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, 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>,