Struct google_api_proto::google::cloud::sql::v1beta4::ExportContext
source · pub struct ExportContext {
pub uri: String,
pub databases: Vec<String>,
pub kind: String,
pub sql_export_options: Option<SqlExportOptions>,
pub csv_export_options: Option<SqlCsvExportOptions>,
pub file_type: i32,
pub offload: Option<bool>,
pub bak_export_options: Option<SqlBakExportOptions>,
}Expand description
Database instance export context.
Fields§
§uri: StringThe path to the file in Google Cloud Storage where the export will be
stored. The URI is in the form gs://bucketName/fileName. If the file
already exists, the request succeeds, but the operation fails. If
fileType is SQL and the filename ends with .gz,
the contents are compressed.
databases: Vec<String>Databases to be exported.
MySQL instances: If
fileType is SQL and no database is specified, all
databases are exported, except for the mysql system database.
If fileType is CSV, you can specify one database,
either by using this property or by using the
csvExportOptions.selectQuery property, which takes precedence
over this property.
PostgreSQL instances: You must specify
one database to be exported. If fileType is CSV,
this database must match the one specified in the
csvExportOptions.selectQuery property.
SQL Server instances: You must specify one database to be exported, and the
fileType must be BAK.
kind: StringThis is always sql#exportContext.
sql_export_options: Option<SqlExportOptions>Options for exporting data as SQL statements.
csv_export_options: Option<SqlCsvExportOptions>Options for exporting data as CSV. MySQL and PostgreSQL
instances only.
file_type: i32The file type for the specified uri.
offload: Option<bool>Option for export offload.
bak_export_options: Option<SqlBakExportOptions>Options for exporting data as BAK files.
Implementations§
source§impl ExportContext
impl ExportContext
sourcepub fn file_type(&self) -> SqlFileType
pub fn file_type(&self) -> SqlFileType
Returns the enum value of file_type, or the default if the field is set to an invalid enum value.
sourcepub fn set_file_type(&mut self, value: SqlFileType)
pub fn set_file_type(&mut self, value: SqlFileType)
Sets file_type to the provided enum value.
Trait Implementations§
source§impl Clone for ExportContext
impl Clone for ExportContext
source§fn clone(&self) -> ExportContext
fn clone(&self) -> ExportContext
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExportContext
impl Debug for ExportContext
source§impl Default for ExportContext
impl Default for ExportContext
source§impl Message for ExportContext
impl Message for ExportContext
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.source§impl PartialEq for ExportContext
impl PartialEq for ExportContext
source§fn eq(&self, other: &ExportContext) -> bool
fn eq(&self, other: &ExportContext) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ExportContext
Auto Trait Implementations§
impl Freeze for ExportContext
impl RefUnwindSafe for ExportContext
impl Send for ExportContext
impl Sync for ExportContext
impl Unpin for ExportContext
impl UnwindSafe for ExportContext
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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