#[non_exhaustive]pub struct UnmanagedContainerModel {
pub artifact_uri: String,
pub predict_schemata: Option<PredictSchemata>,
pub container_spec: Option<ModelContainerSpec>,
/* private fields */
}Expand description
Contains model information necessary to perform batch prediction without requiring a full model import.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.artifact_uri: StringThe path to the directory containing the Model artifact and any of its supporting files.
predict_schemata: Option<PredictSchemata>Contains the schemata used in Model’s predictions and explanations
container_spec: Option<ModelContainerSpec>Input only. The specification of the container that is to be used when deploying this Model.
Implementations§
Source§impl UnmanagedContainerModel
impl UnmanagedContainerModel
pub fn new() -> Self
Sourcepub fn set_artifact_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_artifact_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of artifact_uri.
Sourcepub fn set_predict_schemata<T: Into<Option<PredictSchemata>>>(
self,
v: T,
) -> Self
pub fn set_predict_schemata<T: Into<Option<PredictSchemata>>>( self, v: T, ) -> Self
Sets the value of predict_schemata.
Sourcepub fn set_container_spec<T: Into<Option<ModelContainerSpec>>>(
self,
v: T,
) -> Self
pub fn set_container_spec<T: Into<Option<ModelContainerSpec>>>( self, v: T, ) -> Self
Sets the value of container_spec.
Trait Implementations§
Source§impl Clone for UnmanagedContainerModel
impl Clone for UnmanagedContainerModel
Source§fn clone(&self) -> UnmanagedContainerModel
fn clone(&self) -> UnmanagedContainerModel
Returns a copy of the value. Read more
1.0.0 · 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 UnmanagedContainerModel
impl Debug for UnmanagedContainerModel
Source§impl Default for UnmanagedContainerModel
impl Default for UnmanagedContainerModel
Source§fn default() -> UnmanagedContainerModel
fn default() -> UnmanagedContainerModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnmanagedContainerModelwhere
UnmanagedContainerModel: Default,
impl<'de> Deserialize<'de> for UnmanagedContainerModelwhere
UnmanagedContainerModel: Default,
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
Source§impl Message for UnmanagedContainerModel
impl Message for UnmanagedContainerModel
Source§impl PartialEq for UnmanagedContainerModel
impl PartialEq for UnmanagedContainerModel
Source§impl Serialize for UnmanagedContainerModel
impl Serialize for UnmanagedContainerModel
impl StructuralPartialEq for UnmanagedContainerModel
Auto Trait Implementations§
impl Freeze for UnmanagedContainerModel
impl RefUnwindSafe for UnmanagedContainerModel
impl Send for UnmanagedContainerModel
impl Sync for UnmanagedContainerModel
impl Unpin for UnmanagedContainerModel
impl UnwindSafe for UnmanagedContainerModel
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