#[non_exhaustive]pub struct CreateSchemaRequest {
pub parent: String,
pub schema: Option<Schema>,
pub schema_id: String,
/* private fields */
}Available on crate feature
schema-service only.Expand description
Request message for SchemaService.CreateSchema method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent data store resource name, in the format of
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}.
schema: Option<Schema>Required. The Schema to create.
schema_id: StringRequired. The ID to use for the Schema, which becomes the final component of the Schema.name.
This field should conform to RFC-1034 standard with a length limit of 63 characters.
Implementations§
Source§impl CreateSchemaRequest
impl CreateSchemaRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_schema<T>(self, v: T) -> Self
pub fn set_schema<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_schema<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_schema<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateSchemaRequest
impl Clone for CreateSchemaRequest
Source§fn clone(&self) -> CreateSchemaRequest
fn clone(&self) -> CreateSchemaRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateSchemaRequest
impl Debug for CreateSchemaRequest
Source§impl Default for CreateSchemaRequest
impl Default for CreateSchemaRequest
Source§fn default() -> CreateSchemaRequest
fn default() -> CreateSchemaRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateSchemaRequest
impl Message for CreateSchemaRequest
Source§impl PartialEq for CreateSchemaRequest
impl PartialEq for CreateSchemaRequest
impl StructuralPartialEq for CreateSchemaRequest
Auto Trait Implementations§
impl Freeze for CreateSchemaRequest
impl RefUnwindSafe for CreateSchemaRequest
impl Send for CreateSchemaRequest
impl Sync for CreateSchemaRequest
impl Unpin for CreateSchemaRequest
impl UnwindSafe for CreateSchemaRequest
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
Mutably borrows from an owned value. Read more