#[non_exhaustive]pub struct SpannerSource {
pub project_id: String,
pub instance_id: String,
pub database_id: String,
pub table_id: String,
pub enable_data_boost: bool,
/* private fields */
}Available on crate feature
document-service only.Expand description
The Spanner source for importing data
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.project_id: StringThe project ID that contains the Spanner source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
instance_id: StringRequired. The instance ID of the source Spanner table.
database_id: StringRequired. The database ID of the source Spanner table.
table_id: StringRequired. The table name of the Spanner database that needs to be imported.
enable_data_boost: boolWhether to apply data boost on Spanner export. Enabling this option will incur additional cost. More info can be found here.
Implementations§
Source§impl SpannerSource
impl SpannerSource
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_instance_id<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_database_id<T: Into<String>>(self, v: T) -> Self
pub fn set_database_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_table_id<T: Into<String>>(self, v: T) -> Self
pub fn set_table_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_enable_data_boost<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_data_boost<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_data_boost.
§Example
ⓘ
let x = SpannerSource::new().set_enable_data_boost(true);Trait Implementations§
Source§impl Clone for SpannerSource
impl Clone for SpannerSource
Source§fn clone(&self) -> SpannerSource
fn clone(&self) -> SpannerSource
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 SpannerSource
impl Debug for SpannerSource
Source§impl Default for SpannerSource
impl Default for SpannerSource
Source§fn default() -> SpannerSource
fn default() -> SpannerSource
Returns the “default value” for a type. Read more
Source§impl Message for SpannerSource
impl Message for SpannerSource
Source§impl PartialEq for SpannerSource
impl PartialEq for SpannerSource
impl StructuralPartialEq for SpannerSource
Auto Trait Implementations§
impl Freeze for SpannerSource
impl RefUnwindSafe for SpannerSource
impl Send for SpannerSource
impl Sync for SpannerSource
impl Unpin for SpannerSource
impl UnwindSafe for SpannerSource
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