pub struct Model {
pub id: String,
pub object: String,
pub created: u32,
pub owned_by: String,
}
Fields§
§id: String
§object: String
§created: u32
§owned_by: String
Implementations§
Source§impl Model
impl Model
Sourcepub async fn from(id: &str) -> ApiResponseOrError<Self>
👎Deprecated since 1.0.0-alpha.16: use fetch
instead
pub async fn from(id: &str) -> ApiResponseOrError<Self>
fetch
insteadRetrieves a model instance, providing basic information about the model such as the owner and permissioning.
Sourcepub async fn fetch(
id: &str,
credentials: Credentials,
) -> ApiResponseOrError<Self>
pub async fn fetch( id: &str, credentials: Credentials, ) -> ApiResponseOrError<Self>
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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