#[non_exhaustive]pub struct UpdateSchemaRequest {
pub schema: Option<Schema>,
pub allow_missing: bool,
/* private fields */
}Available on crate feature
schema-service only.Expand description
Request message for SchemaService.UpdateSchema 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.schema: Option<Schema>Required. The Schema to update.
allow_missing: boolIf set to true, and the Schema is
not found, a new Schema is
created. In this situation, update_mask is ignored.
Implementations§
Source§impl UpdateSchemaRequest
impl UpdateSchemaRequest
pub fn new() -> 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
Sourcepub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_missing.
§Example
ⓘ
let x = UpdateSchemaRequest::new().set_allow_missing(true);Trait Implementations§
Source§impl Clone for UpdateSchemaRequest
impl Clone for UpdateSchemaRequest
Source§fn clone(&self) -> UpdateSchemaRequest
fn clone(&self) -> UpdateSchemaRequest
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 UpdateSchemaRequest
impl Debug for UpdateSchemaRequest
Source§impl Default for UpdateSchemaRequest
impl Default for UpdateSchemaRequest
Source§fn default() -> UpdateSchemaRequest
fn default() -> UpdateSchemaRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateSchemaRequest
impl Message for UpdateSchemaRequest
Source§impl PartialEq for UpdateSchemaRequest
impl PartialEq for UpdateSchemaRequest
impl StructuralPartialEq for UpdateSchemaRequest
Auto Trait Implementations§
impl Freeze for UpdateSchemaRequest
impl RefUnwindSafe for UpdateSchemaRequest
impl Send for UpdateSchemaRequest
impl Sync for UpdateSchemaRequest
impl Unpin for UpdateSchemaRequest
impl UnwindSafe for UpdateSchemaRequest
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