[][src]Struct gcp_client::google::cloud::automl::v1beta1::Model

pub struct Model {
    pub name: String,
    pub display_name: String,
    pub dataset_id: String,
    pub create_time: Option<Timestamp>,
    pub update_time: Option<Timestamp>,
    pub deployment_state: i32,
    pub model_metadata: Option<ModelMetadata>,
}

API proto representing a trained machine learning model.

Fields

name: String

Output only. Resource name of the model. Format: projects/{project_id}/locations/{location_id}/models/{model_id}

display_name: String

Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. It must start with a letter.

dataset_id: String

Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.

create_time: Option<Timestamp>

Output only. Timestamp when the model training finished and can be used for prediction.

update_time: Option<Timestamp>

Output only. Timestamp when this model was last updated.

deployment_state: i32

Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.

model_metadata: Option<ModelMetadata>

Required. The model metadata that is specific to the problem type. Must match the metadata type of the dataset used to train the model.

Implementations

impl Model[src]

pub fn deployment_state(&self) -> DeploymentState[src]

Returns the enum value of deployment_state, or the default if the field is set to an invalid enum value.

pub fn set_deployment_state(&mut self, value: DeploymentState)[src]

Sets deployment_state to the provided enum value.

Trait Implementations

impl Clone for Model[src]

impl Debug for Model[src]

impl Default for Model[src]

impl Message for Model[src]

impl PartialEq<Model> for Model[src]

impl StructuralPartialEq for Model[src]

Auto Trait Implementations

impl RefUnwindSafe for Model

impl Send for Model

impl Sync for Model

impl Unpin for Model

impl UnwindSafe for Model

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]