#[non_exhaustive]pub struct Modification {
pub id: String,
pub update_mask: Option<FieldMask>,
pub mod: Option<Mod>,
/* private fields */
}Expand description
A create, update, or delete of a particular column family.
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.id: StringThe ID of the column family to be modified.
update_mask: Option<FieldMask>Optional. A mask specifying which fields (e.g. gc_rule) in the update
mod should be updated, ignored for other modification types. If unset or
empty, we treat it as updating gc_rule to be backward compatible.
mod: Option<Mod>Column family modifications.
Implementations§
Source§impl Modification
impl Modification
pub fn new() -> Self
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
Sourcepub fn set_mod<T: Into<Option<Mod>>>(self, v: T) -> Self
pub fn set_mod<T: Into<Option<Mod>>>(self, v: T) -> Self
Sets the value of r#mod.
Note that all the setters affecting r#mod are mutually
exclusive.
Sourcepub fn create(&self) -> Option<&Box<ColumnFamily>>
pub fn create(&self) -> Option<&Box<ColumnFamily>>
The value of [r#mod][crate::model::modify_column_families_request::Modification::r#mod]
if it holds a Create, None if the field is not set or
holds a different branch.
Sourcepub fn set_create<T: Into<Box<ColumnFamily>>>(self, v: T) -> Self
pub fn set_create<T: Into<Box<ColumnFamily>>>(self, v: T) -> Self
Sets the value of [r#mod][crate::model::modify_column_families_request::Modification::r#mod]
to hold a Create.
Note that all the setters affecting r#mod are
mutually exclusive.
Sourcepub fn update(&self) -> Option<&Box<ColumnFamily>>
pub fn update(&self) -> Option<&Box<ColumnFamily>>
The value of [r#mod][crate::model::modify_column_families_request::Modification::r#mod]
if it holds a Update, None if the field is not set or
holds a different branch.
Sourcepub fn set_update<T: Into<Box<ColumnFamily>>>(self, v: T) -> Self
pub fn set_update<T: Into<Box<ColumnFamily>>>(self, v: T) -> Self
Sets the value of [r#mod][crate::model::modify_column_families_request::Modification::r#mod]
to hold a Update.
Note that all the setters affecting r#mod are
mutually exclusive.
Trait Implementations§
Source§impl Clone for Modification
impl Clone for Modification
Source§fn clone(&self) -> Modification
fn clone(&self) -> Modification
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more