#[non_exhaustive]pub struct CloudSqlSource {
pub project_id: String,
pub instance_id: String,
pub database_id: String,
pub table_id: String,
pub gcs_staging_dir: String,
pub offload: bool,
/* private fields */
}document-service only.Expand description
Cloud SQL source import data from.
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.project_id: StringThe project ID that contains the Cloud SQL source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
instance_id: StringRequired. The Cloud SQL instance to copy the data from with a length limit of 256 characters.
database_id: StringRequired. The Cloud SQL database to copy the data from with a length limit of 256 characters.
table_id: StringRequired. The Cloud SQL table to copy the data from with a length limit of 256 characters.
gcs_staging_dir: StringIntermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the Cloud SQL export to a specific Cloud Storage directory.
Ensure that the Cloud SQL service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.
offload: boolOption for serverless export. Enabling this option will incur additional cost. More info can be found here.
Implementations§
Source§impl CloudSqlSource
impl CloudSqlSource
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_gcs_staging_dir<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_staging_dir<T: Into<String>>(self, v: T) -> Self
Sets the value of gcs_staging_dir.
§Example
let x = CloudSqlSource::new().set_gcs_staging_dir("example");Trait Implementations§
Source§impl Clone for CloudSqlSource
impl Clone for CloudSqlSource
Source§fn clone(&self) -> CloudSqlSource
fn clone(&self) -> CloudSqlSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CloudSqlSource
impl Debug for CloudSqlSource
Source§impl Default for CloudSqlSource
impl Default for CloudSqlSource
Source§fn default() -> CloudSqlSource
fn default() -> CloudSqlSource
Source§impl Message for CloudSqlSource
impl Message for CloudSqlSource
Source§impl PartialEq for CloudSqlSource
impl PartialEq for CloudSqlSource
impl StructuralPartialEq for CloudSqlSource
Auto Trait Implementations§
impl Freeze for CloudSqlSource
impl RefUnwindSafe for CloudSqlSource
impl Send for CloudSqlSource
impl Sync for CloudSqlSource
impl Unpin for CloudSqlSource
impl UnsafeUnpin for CloudSqlSource
impl UnwindSafe for CloudSqlSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request