pub struct ListModelsResponse {
pub models: Vec<ModelCard>,
pub raw_http_response: RawResponse,
}Expand description
Models available to the account, with raw HTTP metadata.
Fields§
§models: Vec<ModelCard>§raw_http_response: RawResponseImplementations§
Source§impl ListModelsResponse
impl ListModelsResponse
Sourcepub fn from_raw(raw: RawResponse) -> Result<Self, Error>
pub fn from_raw(raw: RawResponse) -> Result<Self, Error>
Parse a model list and retain HTTP metadata. Non-2xx statuses are errors.
pub fn request_id(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for ListModelsResponse
impl Clone for ListModelsResponse
Source§fn clone(&self) -> ListModelsResponse
fn clone(&self) -> ListModelsResponse
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 ListModelsResponse
impl Debug for ListModelsResponse
Auto Trait Implementations§
impl !Freeze for ListModelsResponse
impl RefUnwindSafe for ListModelsResponse
impl Send for ListModelsResponse
impl Sync for ListModelsResponse
impl Unpin for ListModelsResponse
impl UnsafeUnpin for ListModelsResponse
impl UnwindSafe for ListModelsResponse
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