pub struct NewModel {
pub role: ModelRole,
pub model_name: String,
pub model_version: String,
pub local_path: Option<String>,
pub license_summary: Option<String>,
pub size_bytes: Option<u64>,
pub backend: Option<String>,
pub dimension: Option<u32>,
pub status: ModelStatus,
}Expand description
Parameters for registering a new model.
Fields§
§role: ModelRole§model_name: String§model_version: String§local_path: Option<String>§license_summary: Option<String>§size_bytes: Option<u64>§backend: Option<String>§dimension: Option<u32>§status: ModelStatusTrait Implementations§
Auto Trait Implementations§
impl Freeze for NewModel
impl RefUnwindSafe for NewModel
impl Send for NewModel
impl Sync for NewModel
impl Unpin for NewModel
impl UnsafeUnpin for NewModel
impl UnwindSafe for NewModel
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