pub struct ModelParamsResponse {
pub defaults: Map<String, Value>,
pub model_id: String,
pub params: HashMap<String, Map<String, Value>>,
pub provider: Option<String>,
pub type_: Option<String>,
}Expand description
ModelParamsResponse
JSON schema
{
"type": "object",
"required": [
"defaults",
"modelId",
"params"
],
"properties": {
"defaults": {
"type": "object",
"additionalProperties": true
},
"modelId": {
"type": "string"
},
"params": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": true
}
},
"provider": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
}
}
}Fields§
§defaults: Map<String, Value>§model_id: String§params: HashMap<String, Map<String, Value>>§provider: Option<String>§type_: Option<String>Implementations§
Source§impl ModelParamsResponse
impl ModelParamsResponse
pub fn builder() -> ModelParamsResponse
Trait Implementations§
Source§impl Clone for ModelParamsResponse
impl Clone for ModelParamsResponse
Source§fn clone(&self) -> ModelParamsResponse
fn clone(&self) -> ModelParamsResponse
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 moreSource§impl Debug for ModelParamsResponse
impl Debug for ModelParamsResponse
Source§impl<'de> Deserialize<'de> for ModelParamsResponse
impl<'de> Deserialize<'de> for ModelParamsResponse
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 From<ModelParamsResponse> for ModelParamsResponse
impl From<ModelParamsResponse> for ModelParamsResponse
Source§fn from(value: ModelParamsResponse) -> Self
fn from(value: ModelParamsResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for ModelParamsResponse
impl Serialize for ModelParamsResponse
Source§impl TryFrom<ModelParamsResponse> for ModelParamsResponse
impl TryFrom<ModelParamsResponse> for ModelParamsResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ModelParamsResponse) -> Result<Self, ConversionError>
fn try_from(value: ModelParamsResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ModelParamsResponse
impl RefUnwindSafe for ModelParamsResponse
impl Send for ModelParamsResponse
impl Sync for ModelParamsResponse
impl Unpin for ModelParamsResponse
impl UnsafeUnpin for ModelParamsResponse
impl UnwindSafe for ModelParamsResponse
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