pub struct ModelOperationCapability {
pub input: Vec<String>,
pub modality: CanonicalModality,
pub operation: ModelOperationCapabilityOperation,
pub output: Vec<String>,
pub pricing_units: Vec<PricingUnit>,
pub source_types: Vec<String>,
pub streamable: bool,
}Expand description
ModelOperationCapability
JSON schema
{
"type": "object",
"required": [
"input",
"modality",
"operation",
"output",
"pricingUnits",
"sourceTypes",
"streamable"
],
"properties": {
"input": {
"type": "array",
"items": {
"type": "string"
}
},
"modality": {
"$ref": "#/components/schemas/CanonicalModality"
},
"operation": {
"type": "string",
"minLength": 1
},
"output": {
"type": "array",
"items": {
"type": "string"
}
},
"pricingUnits": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PricingUnit"
}
},
"sourceTypes": {
"type": "array",
"items": {
"type": "string"
}
},
"streamable": {
"type": "boolean"
}
}
}Fields§
§input: Vec<String>§modality: CanonicalModality§operation: ModelOperationCapabilityOperation§output: Vec<String>§pricing_units: Vec<PricingUnit>§source_types: Vec<String>§streamable: boolImplementations§
Source§impl ModelOperationCapability
impl ModelOperationCapability
pub fn builder() -> ModelOperationCapability
Trait Implementations§
Source§impl Clone for ModelOperationCapability
impl Clone for ModelOperationCapability
Source§fn clone(&self) -> ModelOperationCapability
fn clone(&self) -> ModelOperationCapability
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 ModelOperationCapability
impl Debug for ModelOperationCapability
Source§impl<'de> Deserialize<'de> for ModelOperationCapability
impl<'de> Deserialize<'de> for ModelOperationCapability
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<ModelOperationCapability> for ModelOperationCapability
impl From<ModelOperationCapability> for ModelOperationCapability
Source§fn from(value: ModelOperationCapability) -> Self
fn from(value: ModelOperationCapability) -> Self
Converts to this type from the input type.
Source§impl Serialize for ModelOperationCapability
impl Serialize for ModelOperationCapability
Source§impl TryFrom<ModelOperationCapability> for ModelOperationCapability
impl TryFrom<ModelOperationCapability> for ModelOperationCapability
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ModelOperationCapability) -> Result<Self, ConversionError>
fn try_from(value: ModelOperationCapability) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ModelOperationCapability
impl RefUnwindSafe for ModelOperationCapability
impl Send for ModelOperationCapability
impl Sync for ModelOperationCapability
impl Unpin for ModelOperationCapability
impl UnsafeUnpin for ModelOperationCapability
impl UnwindSafe for ModelOperationCapability
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