pub async fn command(
requester: &ProductOSRequestClient,
uri: Uri,
verify_key: Vec<u8>,
module: &str,
instruction: &str,
data: Option<Value>,
) -> Result<ProductOSResponse<BodyBytes>, ProductOSRequestError>Expand description
Execute a command on a remote node.
Sends a command to the specified node URL with authentication.
§Arguments
requester- HTTP client for making the requesturi- Target node URIverify_key- Authentication keymodule- Module nameinstruction- Instruction/command namedata- Optional JSON data payload
§Errors
Returns an error if the request fails or authentication is rejected.