pub struct CreateBackgroundInput {
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,
pub metadata: Option<Value>,
}Expand description
Input for creating a background response that the daemon will process only when the target model has spare live capacity.
Inserts a request template (no parent file) and a request row in pending
state with batch_id = NULL and service_tier = 'background'.
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.
metadata: Option<Value>Provenance for the dispatched request, stored on the template. See
CreateFlexInput::metadata.
Trait Implementations§
Source§impl Clone for CreateBackgroundInput
impl Clone for CreateBackgroundInput
Source§fn clone(&self) -> CreateBackgroundInput
fn clone(&self) -> CreateBackgroundInput
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 CreateBackgroundInput
impl RefUnwindSafe for CreateBackgroundInput
impl Send for CreateBackgroundInput
impl Sync for CreateBackgroundInput
impl Unpin for CreateBackgroundInput
impl UnsafeUnpin for CreateBackgroundInput
impl UnwindSafe for CreateBackgroundInput
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