pub struct TaskProposeRequestV1 {
pub schema: String,
pub title: Option<String>,
pub goal: Option<String>,
pub acceptance: Option<String>,
pub role: Option<String>,
pub origin: TaskOriginV1,
pub session_ref: String,
pub sealed: Option<SealedBlobV1>,
}Expand description
POST /v1/vaults/{vault_id}/tasks: an engine proposes a task.
Fields§
§schema: String§title: Option<String>§goal: Option<String>§acceptance: Option<String>When the task is done; required in the clear.
role: Option<String>The agent role it is for (section 5); any role when absent.
origin: TaskOriginV1§session_ref: StringOpaque, per-session id (no host or user data).
sealed: Option<SealedBlobV1>Implementations§
Source§impl TaskProposeRequestV1
impl TaskProposeRequestV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for TaskProposeRequestV1
impl Clone for TaskProposeRequestV1
Source§impl Debug for TaskProposeRequestV1
impl Debug for TaskProposeRequestV1
Source§impl<'de> Deserialize<'de> for TaskProposeRequestV1
impl<'de> Deserialize<'de> for TaskProposeRequestV1
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
impl Eq for TaskProposeRequestV1
Source§impl PartialEq for TaskProposeRequestV1
impl PartialEq for TaskProposeRequestV1
Source§impl Serialize for TaskProposeRequestV1
impl Serialize for TaskProposeRequestV1
impl StructuralPartialEq for TaskProposeRequestV1
Auto Trait Implementations§
impl Freeze for TaskProposeRequestV1
impl RefUnwindSafe for TaskProposeRequestV1
impl Send for TaskProposeRequestV1
impl Sync for TaskProposeRequestV1
impl Unpin for TaskProposeRequestV1
impl UnsafeUnpin for TaskProposeRequestV1
impl UnwindSafe for TaskProposeRequestV1
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