pub struct EmbeddingRequest {
pub request_type: String,
pub request_id: Option<String>,
pub model: Option<String>,
pub framework: Option<String>,
pub text: Option<String>,
pub image: Option<String>,
pub user_id: Option<String>,
pub organizations: Option<HashMap<String, HashMap<String, String>>>,
pub handle: Option<String>,
pub output_topic: Option<String>,
pub output_partition: Option<i32>,
}Fields§
§request_type: String§request_id: Option<String>§model: Option<String>§framework: Option<String>§text: Option<String>§image: Option<String>§user_id: Option<String>§organizations: Option<HashMap<String, HashMap<String, String>>>§handle: Option<String>§output_topic: Option<String>§output_partition: Option<i32>Trait Implementations§
Source§impl Default for EmbeddingRequest
impl Default for EmbeddingRequest
Source§fn default() -> EmbeddingRequest
fn default() -> EmbeddingRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmbeddingRequest
impl<'de> Deserialize<'de> for EmbeddingRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Request for EmbeddingRequest
impl Request for EmbeddingRequest
fn set_user_id(&mut self, user_id: String)
fn set_output_topic(&mut self, output_topic: String)
fn set_request_id(&mut self, request_id: String)
fn set_organizations( &mut self, organizations: HashMap<String, HashMap<String, String>>, )
fn set_handle(&mut self, handle: String)
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
Source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Creates a shared type from an unshared type.