Struct hdk::prelude::AgentInfo[][src]

pub struct AgentInfo {
    pub agent_initial_pubkey: HoloHash<Agent>,
    pub agent_latest_pubkey: HoloHash<Agent>,
}

The struct containing all information about the executing agent’s identity.

Fields

agent_initial_pubkey: HoloHash<Agent>

The current agent’s pubkey at genesis. Always found at index 2 in the source chain.

agent_latest_pubkey: HoloHash<Agent>

The current agent’s current pubkey. Same as the initial pubkey if it has never been changed. The agent can revoke an old key and replace it with a new one, the latest appears here.

Trait Implementations

impl Clone for AgentInfo[src]

impl Debug for AgentInfo[src]

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

impl PartialEq<AgentInfo> for AgentInfo[src]

impl Serialize for AgentInfo[src]

impl StructuralPartialEq for AgentInfo[src]

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

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<AgentInfo> for SerializedBytes[src]

type Error = SerializedBytesError

The type returned in the event of a conversion error.

impl TryFrom<SerializedBytes> for AgentInfo[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>,