pub struct AcpRequest {
pub action: String,
pub args: Value,
pub timeout_secs: Option<u64>,
pub sync: bool,
}Expand description
ACP request structure
Fields§
§action: StringAction/tool name to execute
args: ValueArguments for the action (any JSON-serializable data)
timeout_secs: Option<u64>Optional timeout in seconds
sync: boolWhether to await response synchronously
Trait Implementations§
Source§impl Clone for AcpRequest
impl Clone for AcpRequest
Source§fn clone(&self) -> AcpRequest
fn clone(&self) -> AcpRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AcpRequest
impl Debug for AcpRequest
Source§impl<'de> Deserialize<'de> for AcpRequest
impl<'de> Deserialize<'de> for AcpRequest
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 AcpRequest
impl RefUnwindSafe for AcpRequest
impl Send for AcpRequest
impl Sync for AcpRequest
impl Unpin for AcpRequest
impl UnwindSafe for AcpRequest
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