#[non_exhaustive]pub struct BigtableOptions {
pub key_field_name: String,
pub families: HashMap<String, BigtableColumnFamily>,
/* private fields */
}Available on crate feature
document-service only.Expand description
The Bigtable Options object that contains information to support the import.
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.key_field_name: StringThe field name used for saving row key value in the document. The name has
to match the pattern [a-zA-Z0-9][a-zA-Z0-9-_]*.
families: HashMap<String, BigtableColumnFamily>The mapping from family names to an object that contains column families level information for the given column family. If a family is not present in this map it will be ignored.
Implementations§
Source§impl BigtableOptions
impl BigtableOptions
pub fn new() -> Self
Sourcepub fn set_key_field_name<T: Into<String>>(self, v: T) -> Self
pub fn set_key_field_name<T: Into<String>>(self, v: T) -> Self
Sets the value of key_field_name.
§Example
ⓘ
let x = BigtableOptions::new().set_key_field_name("example");Sourcepub fn set_families<T, K, V>(self, v: T) -> Self
pub fn set_families<T, K, V>(self, v: T) -> Self
Sets the value of families.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::bigtable_options::BigtableColumnFamily;
let x = BigtableOptions::new().set_families([
("key0", BigtableColumnFamily::default()/* use setters */),
("key1", BigtableColumnFamily::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for BigtableOptions
impl Clone for BigtableOptions
Source§fn clone(&self) -> BigtableOptions
fn clone(&self) -> BigtableOptions
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 BigtableOptions
impl Debug for BigtableOptions
Source§impl Default for BigtableOptions
impl Default for BigtableOptions
Source§fn default() -> BigtableOptions
fn default() -> BigtableOptions
Returns the “default value” for a type. Read more
Source§impl Message for BigtableOptions
impl Message for BigtableOptions
Source§impl PartialEq for BigtableOptions
impl PartialEq for BigtableOptions
impl StructuralPartialEq for BigtableOptions
Auto Trait Implementations§
impl Freeze for BigtableOptions
impl RefUnwindSafe for BigtableOptions
impl Send for BigtableOptions
impl Sync for BigtableOptions
impl Unpin for BigtableOptions
impl UnwindSafe for BigtableOptions
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