Struct google_api_proto::google::cloud::aiplatform::v1::Schema
source · pub struct Schema {Show 20 fields
pub type: i32,
pub format: String,
pub title: String,
pub description: String,
pub nullable: bool,
pub default: Option<Value>,
pub items: Option<Box<Schema>>,
pub min_items: i64,
pub max_items: i64,
pub enum: Vec<String>,
pub properties: BTreeMap<String, Schema>,
pub required: Vec<String>,
pub min_properties: i64,
pub max_properties: i64,
pub minimum: f64,
pub maximum: f64,
pub min_length: i64,
pub max_length: i64,
pub pattern: String,
pub example: Option<Value>,
}
Expand description
Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.
Fields§
§type: i32
Optional. The type of the data.
format: String
Optional. The format of the data. Supported formats: for NUMBER type: “float”, “double” for INTEGER type: “int32”, “int64” for STRING type: “email”, “byte”, etc
title: String
Optional. The title of the Schema.
description: String
Optional. The description of the data.
nullable: bool
Optional. Indicates if the value may be null.
default: Option<Value>
Optional. Default value of the data.
items: Option<Box<Schema>>
Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY.
min_items: i64
Optional. Minimum number of the elements for Type.ARRAY.
max_items: i64
Optional. Maximum number of the elements for Type.ARRAY.
enum: Vec<String>
Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[“EAST”, NORTH“, “SOUTH”, “WEST”]}
properties: BTreeMap<String, Schema>
Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT.
required: Vec<String>
Optional. Required properties of Type.OBJECT.
min_properties: i64
Optional. Minimum number of the properties for Type.OBJECT.
max_properties: i64
Optional. Maximum number of the properties for Type.OBJECT.
minimum: f64
Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER
maximum: f64
Optional. Maximum value of the Type.INTEGER and Type.NUMBER
min_length: i64
Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING
max_length: i64
Optional. Maximum length of the Type.STRING
pattern: String
Optional. Pattern of the Type.STRING to restrict a string to a regular expression.
example: Option<Value>
Optional. Example of the object. Will only populated when the object is the root.
Implementations§
Trait Implementations§
source§impl Message for Schema
impl Message for Schema
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Schema
impl PartialEq for Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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