pub struct CreateFlexInput {
pub request_id: Uuid,
pub body: String,
pub model: String,
pub endpoint: String,
pub method: String,
pub path: String,
pub api_key: String,
pub created_by: String,
}Expand description
Input for creating a flex (async) response that the daemon will process.
Inserts a request template (no parent file) and a request row in pending
state with batch_id = NULL. The daemon claims and processes it like any
other pending request.
Fields§
§request_id: UuidPre-generated request ID. Becomes the request’s primary key.
body: StringThe request body as a JSON string.
model: StringModel identifier.
endpoint: StringBase URL of the target endpoint (e.g., “http://localhost:3001/ai”).
method: StringHTTP method (e.g., “POST”).
path: StringAPI path (e.g., “/v1/responses”).
api_key: StringAPI key for the request.
created_by: StringUser/org ID that owns this request.
Trait Implementations§
Source§impl Clone for CreateFlexInput
impl Clone for CreateFlexInput
Source§fn clone(&self) -> CreateFlexInput
fn clone(&self) -> CreateFlexInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateFlexInput
impl RefUnwindSafe for CreateFlexInput
impl Send for CreateFlexInput
impl Sync for CreateFlexInput
impl Unpin for CreateFlexInput
impl UnsafeUnpin for CreateFlexInput
impl UnwindSafe for CreateFlexInput
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