pub struct ListModelsResponse { /* private fields */ }Expand description
The models available to the account, with the HTTP response they came in.
Serializing it writes models only; the HTTP metadata is runtime state,
not part of the API payload.
Implementations§
Source§impl ListModelsResponse
impl ListModelsResponse
Sourcepub fn models(&self) -> &[ModelMetadata]
pub fn models(&self) -> &[ModelMetadata]
The models, in the order the API listed them.
Sourcepub fn meta(&self) -> &ResponseMeta
pub fn meta(&self) -> &ResponseMeta
The status, headers and raw body of the HTTP response.
Sourcepub fn into_models(self) -> Vec<ModelMetadata>
pub fn into_models(self) -> Vec<ModelMetadata>
Gives up everything but the models.
Trait Implementations§
Source§impl Clone for ListModelsResponse
impl Clone for ListModelsResponse
Source§impl Debug for ListModelsResponse
impl Debug for ListModelsResponse
Source§impl PartialEq for ListModelsResponse
impl PartialEq for ListModelsResponse
Source§impl Serialize for ListModelsResponse
impl Serialize for ListModelsResponse
impl StructuralPartialEq 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