[][src]Struct google_sqladmin1_beta4::ImportContext

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. PostgreSQL instances only.

database: Option<String>

The target database for the import. If fileType is SQL, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. If fileType is CSV, one database 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>

Path to the import file in Cloud Storage, in the form gs://bucketName/fileName. Compressed gzip files (.gz) are supported when fileType is SQL. The instance must have write permissions to the bucket and read access to the file.

Trait Implementations

impl Part for ImportContext[src]

impl Default for ImportContext[src]

impl Clone for ImportContext[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for ImportContext[src]

impl Serialize for ImportContext[src]

impl<'de> Deserialize<'de> for ImportContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]