#[non_exhaustive]pub struct PublisherModel {
pub name: String,
pub version_id: String,
pub open_source_category: OpenSourceCategory,
pub supported_actions: Option<CallToAction>,
pub frameworks: Vec<String>,
pub launch_stage: LaunchStage,
pub version_state: VersionState,
pub publisher_model_template: String,
pub predict_schemata: Option<PredictSchemata>,
/* private fields */
}Expand description
A Model Garden Publisher Model.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The resource name of the PublisherModel.
version_id: StringOutput only. Immutable. The version ID of the PublisherModel. A new version is committed when a new model version is uploaded under an existing model id. It is an auto-incrementing decimal number in string representation.
open_source_category: OpenSourceCategoryRequired. Indicates the open source category of the publisher model.
supported_actions: Option<CallToAction>Optional. Supported call-to-action options.
frameworks: Vec<String>Optional. Additional information about the model’s Frameworks.
launch_stage: LaunchStageOptional. Indicates the launch stage of the model.
version_state: VersionStateOptional. Indicates the state of the model version.
publisher_model_template: StringOptional. Output only. Immutable. Used to indicate this model has a publisher model and provide the template of the publisher model resource name.
predict_schemata: Option<PredictSchemata>Optional. The schemata that describes formats of the PublisherModel’s predictions and explanations as given and returned via PredictionService.Predict.
Implementations§
Source§impl PublisherModel
impl PublisherModel
pub fn new() -> Self
Sourcepub fn set_version_id<T: Into<String>>(self, v: T) -> Self
pub fn set_version_id<T: Into<String>>(self, v: T) -> Self
Sets the value of version_id.
Sourcepub fn set_open_source_category<T: Into<OpenSourceCategory>>(self, v: T) -> Self
pub fn set_open_source_category<T: Into<OpenSourceCategory>>(self, v: T) -> Self
Sets the value of open_source_category.
Sourcepub fn set_supported_actions<T: Into<Option<CallToAction>>>(self, v: T) -> Self
pub fn set_supported_actions<T: Into<Option<CallToAction>>>(self, v: T) -> Self
Sets the value of supported_actions.
Sourcepub fn set_frameworks<T, V>(self, v: T) -> Self
pub fn set_frameworks<T, V>(self, v: T) -> Self
Sets the value of frameworks.
Sourcepub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
pub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
Sets the value of launch_stage.
Sourcepub fn set_version_state<T: Into<VersionState>>(self, v: T) -> Self
pub fn set_version_state<T: Into<VersionState>>(self, v: T) -> Self
Sets the value of version_state.
Sourcepub fn set_publisher_model_template<T: Into<String>>(self, v: T) -> Self
pub fn set_publisher_model_template<T: Into<String>>(self, v: T) -> Self
Sets the value of publisher_model_template.
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.
Trait Implementations§
Source§impl Clone for PublisherModel
impl Clone for PublisherModel
Source§fn clone(&self) -> PublisherModel
fn clone(&self) -> PublisherModel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more