Struct gapi_grpc::google::cloud::sql::v1beta4::ImportContext[][src]

pub struct ImportContext {
    pub uri: String,
    pub database: String,
    pub kind: String,
    pub file_type: i32,
    pub csv_import_options: Option<SqlCsvImportOptions>,
    pub import_user: String,
    pub bak_import_options: Option<SqlBakImportOptions>,
}

Database instance import context.

Fields

uri: 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.

database: 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.

kind: String

This is always sql#importContext.

file_type: i32

The file type for the specified uri.
SQL: The file contains SQL statements.
CSV: The file contains CSV data.

csv_import_options: Option<SqlCsvImportOptions>

Options for importing data as CSV.

import_user: String

The PostgreSQL user for this import operation. PostgreSQL instances only.

bak_import_options: Option<SqlBakImportOptions>

Import parameters specific to SQL Server .BAK files

Implementations

impl ImportContext[src]

pub fn file_type(&self) -> SqlFileType[src]

Returns the enum value of file_type, or the default if the field is set to an invalid enum value.

pub fn set_file_type(&mut self, value: SqlFileType)[src]

Sets file_type to the provided enum value.

Trait Implementations

impl Clone for ImportContext[src]

impl Debug for ImportContext[src]

impl Default for ImportContext[src]

impl Message for ImportContext[src]

impl PartialEq<ImportContext> for ImportContext[src]

impl StructuralPartialEq for ImportContext[src]

Auto Trait Implementations

impl RefUnwindSafe for ImportContext

impl Send for ImportContext

impl Sync for ImportContext

impl Unpin for ImportContext

impl UnwindSafe for ImportContext

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]