#[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 */
}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.
Sourcepub fn set_schema<T: Into<String>>(self, v: T) -> Self
pub fn set_schema<T: Into<String>>(self, v: T) -> Self
Sets the value of schema.
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.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
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