pub struct Request {
pub action: String,
pub target: String,
pub parameters: HashMap<String, Value>,
pub atp_stake: f64,
pub deadline: Option<Deadline>,
pub nonce: String,
pub constraints: HashMap<String, Value>,
pub proof_of_agency: Option<ProofOfAgency>,
}Expand description
Request — the action being requested.
Fields§
§action: StringAction verb (e.g., “file_write”, “deploy”, “analyze_dataset”)
target: StringTarget entity or resource
parameters: HashMap<String, Value>Action-specific parameters
atp_stake: f64ATP staked on outcome (the energy resource committed to the action).
deadline: Option<Deadline>Deadline staked on outcome (the time resource — the temporal twin of
atp_stake). None = no temporal accountability. A typed promotion of
the legacy free-text constraints["deadline"]. See crate::time.
nonce: StringUnique request nonce
constraints: HashMap<String, Value>Execution constraints (legacy free-text bag; typed time → deadline).
proof_of_agency: Option<ProofOfAgency>Proof of delegated agency (if acting on behalf of another)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
Blanket Implementations§
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