Struct holochain_zome_types::info::AgentInfo [−][src]
pub struct AgentInfo {
pub agent_initial_pubkey: AgentPubKey,
pub agent_latest_pubkey: AgentPubKey,
}
Expand description
The struct containing all information about the executing agent’s identity.
Fields
agent_initial_pubkey: AgentPubKey
The current agent’s pubkey at genesis. Always found at index 2 in the source chain.
agent_latest_pubkey: AgentPubKey
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.
Implementations
Trait Implementations
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
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 RefUnwindSafe for AgentInfo
impl UnwindSafe for AgentInfo
Blanket Implementations
Mutably borrows from an owned value. 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