pub struct EmbeddingRequest(pub String);
Tuple Fields§
§0: String
Trait Implementations§
Source§impl OrchRequest for EmbeddingRequest
impl OrchRequest for EmbeddingRequest
Source§type Res = EmbeddingResponse
type Res = EmbeddingResponse
The type of response returned by the request.
Source§fn send<'life0, 'async_trait>(
&'life0 self,
policies: Policies,
keys: Keys,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<Self::Res>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
policies: Policies,
keys: Keys,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<Self::Res>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Business logic of a request. Given the policies, keys, and request ID
(for debugging, send the request and return the response.
Auto Trait Implementations§
impl Freeze for EmbeddingRequest
impl RefUnwindSafe for EmbeddingRequest
impl Send for EmbeddingRequest
impl Sync for EmbeddingRequest
impl Unpin for EmbeddingRequest
impl UnwindSafe for EmbeddingRequest
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