#[non_exhaustive]pub struct MetadataSchema {
pub name: String,
pub schema_version: String,
pub schema: String,
pub schema_type: MetadataSchemaType,
pub create_time: Option<Timestamp>,
pub description: String,
/* private fields */
}metadata-service only.Expand description
Instance of a general MetadataSchema.
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 MetadataSchema.
schema_version: StringThe version of the MetadataSchema. The version’s format must match
the following regular expression: ^[0-9]+[.][0-9]+[.][0-9]+$, which would
allow to order/compare different versions. Example: 1.0.0, 1.0.1, etc.
schema: StringRequired. The raw YAML string representation of the MetadataSchema. The
combination of [MetadataSchema.version] and the schema name given by
title in [MetadataSchema.schema] must be unique within a MetadataStore.
The schema is defined as an OpenAPI 3.0.2 MetadataSchema Object
schema_type: MetadataSchemaTypeThe type of the MetadataSchema. This is a property that identifies which metadata types will use the MetadataSchema.
create_time: Option<Timestamp>Output only. Timestamp when this MetadataSchema was created.
description: StringDescription of the Metadata Schema
Implementations§
Source§impl MetadataSchema
impl MetadataSchema
pub fn new() -> Self
Sourcepub fn set_schema_version<T: Into<String>>(self, v: T) -> Self
pub fn set_schema_version<T: Into<String>>(self, v: T) -> Self
Sets the value of schema_version.
§Example
let x = MetadataSchema::new().set_schema_version("example");Sourcepub fn set_schema<T: Into<String>>(self, v: T) -> Self
pub fn set_schema<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_schema_type<T: Into<MetadataSchemaType>>(self, v: T) -> Self
pub fn set_schema_type<T: Into<MetadataSchemaType>>(self, v: T) -> Self
Sets the value of schema_type.
§Example
use google_cloud_aiplatform_v1::model::metadata_schema::MetadataSchemaType;
let x0 = MetadataSchema::new().set_schema_type(MetadataSchemaType::ArtifactType);
let x1 = MetadataSchema::new().set_schema_type(MetadataSchemaType::ExecutionType);
let x2 = MetadataSchema::new().set_schema_type(MetadataSchemaType::ContextType);Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = MetadataSchema::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = MetadataSchema::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = MetadataSchema::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for MetadataSchema
impl Clone for MetadataSchema
Source§fn clone(&self) -> MetadataSchema
fn clone(&self) -> MetadataSchema
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more