pub struct ModelSearchResponse {
pub data: Vec<Model>,
pub next_cursor: Option<String>,
pub object: ModelSearchResponseObject,
pub total: i64,
}Expand description
ModelSearchResponse
JSON schema
{
"type": "object",
"required": [
"data",
"next_cursor",
"object",
"total"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Model"
}
},
"next_cursor": {
"type": [
"string",
"null"
]
},
"object": {
"type": "string",
"enum": [
"list"
]
},
"total": {
"type": "integer"
}
}
}Fields§
§data: Vec<Model>§next_cursor: Option<String>§object: ModelSearchResponseObject§total: i64Implementations§
Source§impl ModelSearchResponse
impl ModelSearchResponse
pub fn builder() -> ModelSearchResponse
Trait Implementations§
Source§impl Clone for ModelSearchResponse
impl Clone for ModelSearchResponse
Source§fn clone(&self) -> ModelSearchResponse
fn clone(&self) -> ModelSearchResponse
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 ModelSearchResponse
impl Debug for ModelSearchResponse
Source§impl<'de> Deserialize<'de> for ModelSearchResponse
impl<'de> Deserialize<'de> for ModelSearchResponse
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<ModelSearchResponse> for ModelSearchResponse
impl From<ModelSearchResponse> for ModelSearchResponse
Source§fn from(value: ModelSearchResponse) -> Self
fn from(value: ModelSearchResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for ModelSearchResponse
impl Serialize for ModelSearchResponse
Source§impl TryFrom<ModelSearchResponse> for ModelSearchResponse
impl TryFrom<ModelSearchResponse> for ModelSearchResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ModelSearchResponse) -> Result<Self, ConversionError>
fn try_from(value: ModelSearchResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ModelSearchResponse
impl RefUnwindSafe for ModelSearchResponse
impl Send for ModelSearchResponse
impl Sync for ModelSearchResponse
impl Unpin for ModelSearchResponse
impl UnsafeUnpin for ModelSearchResponse
impl UnwindSafe for ModelSearchResponse
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