pub struct CreateTaskRequest {
pub policy_client: Address,
pub intent: TaskIntent,
pub intent_signature: Option<String>,
pub quorum_number: Option<String>,
pub quorum_threshold_percentage: Option<u8>,
pub wasm_args: Option<String>,
pub timeout: Option<u64>,
pub use_two_phase: Option<bool>,
pub encrypted_data_refs: Option<Vec<String>>,
pub user_signature: Option<String>,
pub app_signature: Option<String>,
}Expand description
Request to create a task synchronously (waits for result)
Fields§
§policy_client: AddressPolicy client address
intent: TaskIntentTask intent specifying the transaction to execute
intent_signature: Option<String>Intent signature (hex encoded bytes)
quorum_number: Option<String>Quorum number override (hex encoded bytes array where each byte is a quorum number, e.g., “00” for quorum 0, “0001” for quorums 0 and 1)
quorum_threshold_percentage: Option<u8>Quorum threshold percentage override for BLS aggregation
wasm_args: Option<String>WASM plugin arguments (hex encoded bytes: Vec
timeout: Option<u64>Optional timeout in seconds (default: 30)
use_two_phase: Option<bool>Enable Two-Phase Consensus Protocol for BLS aggregation (default: false) Prepare phase: Collect unsigned policy data from operators Evaluate phase: Compute median consensus, operators sign unified digest This ensures all operators sign the same TaskResponse for successful BLS aggregation
encrypted_data_refs: Option<Vec<String>>Encrypted data reference UUIDs for privacy-preserving evaluation
user_signature: Option<String>User Ed25519 signature over (policy_client + intent_hash + refs) (hex-encoded)
app_signature: Option<String>Application Ed25519 signature over (policy_client + intent_hash + user_sig) (hex-encoded)
Trait Implementations§
Source§impl Clone for CreateTaskRequest
impl Clone for CreateTaskRequest
Source§fn clone(&self) -> CreateTaskRequest
fn clone(&self) -> CreateTaskRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateTaskRequest
impl Debug for CreateTaskRequest
Source§impl<'de> Deserialize<'de> for CreateTaskRequest
impl<'de> Deserialize<'de> for CreateTaskRequest
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>,
Auto Trait Implementations§
impl Freeze for CreateTaskRequest
impl RefUnwindSafe for CreateTaskRequest
impl Send for CreateTaskRequest
impl Sync for CreateTaskRequest
impl Unpin for CreateTaskRequest
impl UnsafeUnpin for CreateTaskRequest
impl UnwindSafe for CreateTaskRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more