Struct holochain_types::activity::AgentActivityResponse [−][src]
pub struct AgentActivityResponse<T = SignedHeaderHashed> {
pub agent: AgentPubKey,
pub valid_activity: ChainItems<T>,
pub rejected_activity: ChainItems<T>,
pub status: ChainStatus,
pub highest_observed: Option<HighestObserved>,
}
Expand description
An agents chain elements returned from a agent_activity_query
Fields
agent: AgentPubKey
The agent this activity is for
valid_activity: ChainItems<T>
Valid headers on this chain.
rejected_activity: ChainItems<T>
Headers that were rejected by the agent activity authority and therefor invalidate the chain.
status: ChainStatus
The status of this chain.
highest_observed: Option<HighestObserved>
The highest chain header that has been observed by this authority.
Implementations
Convert an empty response to a different type.
Convert an status only response to a different type.
Convert an hashes only response to a different type.
Trait Implementations
Create an empty chain status
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for AgentActivityResponse<T> where
T: RefUnwindSafe,
impl<T> Send for AgentActivityResponse<T> where
T: Send,
impl<T> Sync for AgentActivityResponse<T> where
T: Sync,
impl<T> Unpin for AgentActivityResponse<T> where
T: Unpin,
impl<T> UnwindSafe for AgentActivityResponse<T> where
T: UnwindSafe,
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more