#[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
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetadataSchema
impl Debug for MetadataSchema
Source§impl Default for MetadataSchema
impl Default for MetadataSchema
Source§fn default() -> MetadataSchema
fn default() -> MetadataSchema
Source§impl Message for MetadataSchema
impl Message for MetadataSchema
Source§impl PartialEq for MetadataSchema
impl PartialEq for MetadataSchema
impl StructuralPartialEq for MetadataSchema
Auto Trait Implementations§
impl Freeze for MetadataSchema
impl RefUnwindSafe for MetadataSchema
impl Send for MetadataSchema
impl Sync for MetadataSchema
impl Unpin for MetadataSchema
impl UnsafeUnpin for MetadataSchema
impl UnwindSafe for MetadataSchema
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request