Struct google_sqladmin1_beta4::ImportContext [−][src]
pub struct ImportContext { pub kind: Option<String>, pub import_user: Option<String>, pub database: Option<String>, pub file_type: Option<String>, pub csv_import_options: Option<ImportContextCsvImportOptions>, pub uri: Option<String>, }
Database instance import context.
This type is not used in any activity, and only used as part of another schema.
Fields
kind: Option<String>
This is always sql#importContext.
import_user: Option<String>
The PostgreSQL user for this import operation. Defaults to cloudsqlsuperuser. Used only for PostgreSQL instances.
database: Option<String>
The database (for example, guestbook) to which the import is made. If fileType is SQL and no database is specified, it is assumed that the database is specified in the file to be imported. If fileType is CSV, it must be specified.
file_type: Option<String>
The file type for the specified uri. SQL: The file contains SQL statements. CSV: The file contains CSV data.
csv_import_options: Option<ImportContextCsvImportOptions>
Options for importing data as CSV.
uri: Option<String>
A path to the file in Google Cloud Storage from which the import is made. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are supported when fileType is SQL.
Trait Implementations
impl Default for ImportContext
[src]
impl Default for ImportContext
fn default() -> ImportContext
[src]
fn default() -> ImportContext
Returns the "default value" for a type. Read more
impl Clone for ImportContext
[src]
impl Clone for ImportContext
fn clone(&self) -> ImportContext
[src]
fn clone(&self) -> ImportContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ImportContext
[src]
impl Debug for ImportContext
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for ImportContext
[src]
impl Part for ImportContext
Auto Trait Implementations
impl Send for ImportContext
impl Send for ImportContext
impl Sync for ImportContext
impl Sync for ImportContext