pub struct AgentAct {
pub name: String,
pub holder: String,
pub owner: String,
pub at_ms: u64,
pub change: AgentEvent,
}Expand description
Immutable prepared words, supplied only by the approved-draft executor.
Fields§
§name: StringName of the placed agent.
holder: StringThe original verified holder, kept in the immutable draft.
owner: StringThe caller’s responsible person, proved by Lys; never a request override.
at_ms: u64Preparation time, in epoch milliseconds.
change: AgentEventThe deliberate event.
Implementations§
Source§impl AgentAct
impl AgentAct
Sourcepub fn prepare(
name: String,
change: AgentEvent,
pass: &VerifiedPass,
at_ms: u64,
) -> Result<Self, AgentError>
pub fn prepare( name: String, change: AgentEvent, pass: &VerifiedPass, at_ms: u64, ) -> Result<Self, AgentError>
Prepares immutable words from verified claims. An agent’s builders count against its responsible person, so changing creator agent ids cannot evade the person’s configured bound.
§Errors
The verified holder is neither a person nor an agent with a responsible person.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentAct
impl<'de> Deserialize<'de> for AgentAct
Source§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
Auto Trait Implementations§
impl Freeze for AgentAct
impl RefUnwindSafe for AgentAct
impl Send for AgentAct
impl Sync for AgentAct
impl Unpin for AgentAct
impl UnsafeUnpin for AgentAct
impl UnwindSafe for AgentAct
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more