pub struct ModelSpec {
pub id: String,
pub version: Option<String>,
pub format: ModelFormat,
pub location: ModelLocation,
pub metadata: ModelMetadata,
}Expand description
An explicit backend-independent model definition and artifact location.
Fields§
§id: String§version: Option<String>§format: ModelFormat§location: ModelLocation§metadata: ModelMetadataImplementations§
Source§impl ModelSpec
impl ModelSpec
pub fn new( id: impl Into<String>, format: ModelFormat, location: ModelLocation, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelSpec
impl<'de> Deserialize<'de> for ModelSpec
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
impl Eq for ModelSpec
Source§impl From<ModelSpec> for ModelReference
impl From<ModelSpec> for ModelReference
impl StructuralPartialEq for ModelSpec
Auto Trait Implementations§
impl Freeze for ModelSpec
impl RefUnwindSafe for ModelSpec
impl Send for ModelSpec
impl Sync for ModelSpec
impl Unpin for ModelSpec
impl UnsafeUnpin for ModelSpec
impl UnwindSafe for ModelSpec
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