pub struct CreateRealtimeInput {
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 realtime response that the proxy is already handling.
Inserts a request template (no parent file) and a request row in
processing state with batch_id = NULL and daemon_id = Uuid::nil().
The proxy completes/fails the row directly via complete_request /
fail_request; the daemon never claims it.
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 CreateRealtimeInput
impl Clone for CreateRealtimeInput
Source§fn clone(&self) -> CreateRealtimeInput
fn clone(&self) -> CreateRealtimeInput
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 CreateRealtimeInput
impl RefUnwindSafe for CreateRealtimeInput
impl Send for CreateRealtimeInput
impl Sync for CreateRealtimeInput
impl Unpin for CreateRealtimeInput
impl UnsafeUnpin for CreateRealtimeInput
impl UnwindSafe for CreateRealtimeInput
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