pub struct GoogleCloudDataplexV1AspectTypeMetadataTemplate {
pub annotations: Option<GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations>,
pub array_items: Option<Option<Box<GoogleCloudDataplexV1AspectTypeMetadataTemplate>>>,
pub constraints: Option<GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints>,
pub enum_values: Option<Vec<GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue>>,
pub index: Option<i32>,
pub map_items: Option<Option<Box<GoogleCloudDataplexV1AspectTypeMetadataTemplate>>>,
pub name: Option<String>,
pub record_fields: Option<Vec<GoogleCloudDataplexV1AspectTypeMetadataTemplate>>,
pub type_: Option<String>,
pub type_id: Option<String>,
pub type_ref: Option<String>,
}
Expand description
MetadataTemplate definition for AspectType
This type is not used in any activity, and only used as part of another schema.
Fields§
§annotations: Option<GoogleCloudDataplexV1AspectTypeMetadataTemplateAnnotations>
Optional. Specifies annotations on this field.
array_items: Option<Option<Box<GoogleCloudDataplexV1AspectTypeMetadataTemplate>>>
Optional. array_items needs to be set if the type is array. array_items can refer to a primitive field or a complex (record only) field. To specify a primitive field, just name and type needs to be set in the nested MetadataTemplate. The recommended value for the name field is item, as this is not used in the actual payload.
constraints: Option<GoogleCloudDataplexV1AspectTypeMetadataTemplateConstraints>
Optional. Specifies the constraints on this field.
enum_values: Option<Vec<GoogleCloudDataplexV1AspectTypeMetadataTemplateEnumValue>>
Optional. The list of values for an enum type. Needs to be defined if the type is enum.
index: Option<i32>
Optional. Index is used to encode Template messages. The value of index can range between 1 and 2,147,483,647. Index must be unique within all fields in a Template. (Nested Templates can reuse indexes). Once a Template is defined, the index cannot be changed, because it identifies the field in the actual storage format. Index is a mandatory field, but it is optional for top level fields, and map/array “values” definitions.
map_items: Option<Option<Box<GoogleCloudDataplexV1AspectTypeMetadataTemplate>>>
Optional. map_items needs to be set if the type is map. map_items can refer to a primitive field or a complex (record only) field. To specify a primitive field, just name and type needs to be set in the nested MetadataTemplate. The recommended value for the name field is item, as this is not used in the actual payload.
name: Option<String>
Required. The name of the field.
record_fields: Option<Vec<GoogleCloudDataplexV1AspectTypeMetadataTemplate>>
Optional. Field definition, needs to be specified if the type is record. Defines the nested fields.
type_: Option<String>
Required. The datatype of this field. The following values are supported: Primitive types (string, integer, boolean, double, datetime); datetime must be of the format RFC3339 UTC “Zulu” (Examples: “2014-10-02T15:01:23Z” and “2014-10-02T15:01:23.045123456Z”). Complex types (enum, array, map, record).
type_id: Option<String>
Optional. Id can be used if this definition of the field needs to be reused later. Id needs to be unique across the entire template. Id can only be specified if the field type is record.
type_ref: Option<String>
Optional. A reference to another field definition (instead of an inline definition). The value must be equal to the value of an id field defined elsewhere in the MetadataTemplate. Only fields with type as record can refer to other fields.
Trait Implementations§
Source§impl Clone for GoogleCloudDataplexV1AspectTypeMetadataTemplate
impl Clone for GoogleCloudDataplexV1AspectTypeMetadataTemplate
Source§fn clone(&self) -> GoogleCloudDataplexV1AspectTypeMetadataTemplate
fn clone(&self) -> GoogleCloudDataplexV1AspectTypeMetadataTemplate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDataplexV1AspectTypeMetadataTemplate
impl Default for GoogleCloudDataplexV1AspectTypeMetadataTemplate
Source§fn default() -> GoogleCloudDataplexV1AspectTypeMetadataTemplate
fn default() -> GoogleCloudDataplexV1AspectTypeMetadataTemplate
Source§impl<'de> Deserialize<'de> for GoogleCloudDataplexV1AspectTypeMetadataTemplate
impl<'de> Deserialize<'de> for GoogleCloudDataplexV1AspectTypeMetadataTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDataplexV1AspectTypeMetadataTemplate
Auto Trait Implementations§
impl Freeze for GoogleCloudDataplexV1AspectTypeMetadataTemplate
impl RefUnwindSafe for GoogleCloudDataplexV1AspectTypeMetadataTemplate
impl Send for GoogleCloudDataplexV1AspectTypeMetadataTemplate
impl Sync for GoogleCloudDataplexV1AspectTypeMetadataTemplate
impl Unpin for GoogleCloudDataplexV1AspectTypeMetadataTemplate
impl UnwindSafe for GoogleCloudDataplexV1AspectTypeMetadataTemplate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more