pub struct PrepareCtx<'a> {
pub secret: &'a Value,
pub provider_settings: &'a Value,
pub op: OperationKey,
pub stream: bool,
pub upstream_model_id: &'a str,
pub method: Method,
pub path: &'a str,
pub query: Option<&'a str>,
pub headers: &'a HeaderMap,
pub body: Bytes,
}Expand description
Per-call inputs used to build an upstream request.
Fields§
§secret: &'a Value§provider_settings: &'a Value§op: OperationKey§stream: bool§upstream_model_id: &'a str§method: Method§path: &'a str§query: Option<&'a str>§headers: &'a HeaderMap§body: BytesAuto Trait Implementations§
impl<'a> !Freeze for PrepareCtx<'a>
impl<'a> RefUnwindSafe for PrepareCtx<'a>
impl<'a> Send for PrepareCtx<'a>
impl<'a> Sync for PrepareCtx<'a>
impl<'a> Unpin for PrepareCtx<'a>
impl<'a> UnsafeUnpin for PrepareCtx<'a>
impl<'a> UnwindSafe for PrepareCtx<'a>
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