#[non_exhaustive]pub struct SqlBakExportOptions {
pub striped: Option<BoolValue>,
pub stripe_count: Option<Int32Value>,
pub bak_type: BakType,
pub copy_only: Option<BoolValue>,
pub differential_base: Option<BoolValue>,
pub export_log_start_time: Option<Timestamp>,
pub export_log_end_time: Option<Timestamp>,
/* private fields */
}Expand description
Options for exporting BAK files (SQL Server-only)
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.striped: Option<BoolValue>Whether or not the export should be striped.
stripe_count: Option<Int32Value>Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen.
bak_type: BakTypeType of this bak file will be export, FULL or DIFF, SQL Server only
copy_only: Option<BoolValue>Deprecated: copy_only is deprecated. Use differential_base instead
differential_base: Option<BoolValue>Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base
export_log_start_time: Option<Timestamp>Optional. The begin timestamp when transaction log will be included in
the export operation. RFC 3339
format (for example, 2023-10-01T16:19:00.094) in UTC. When omitted, all
available logs from the beginning of retention period will be included.
Only applied to Cloud SQL for SQL Server.
export_log_end_time: Option<Timestamp>Optional. The end timestamp when transaction log will be included in the
export operation. RFC 3339 format
(for example, 2023-10-01T16:19:00.094) in UTC. When omitted, all
available logs until current time will be included. Only applied to Cloud
SQL for SQL Server.
Implementations§
Source§impl SqlBakExportOptions
impl SqlBakExportOptions
pub fn new() -> Self
Sourcepub fn set_striped<T>(self, v: T) -> Self
pub fn set_striped<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_striped<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_striped<T>(self, v: Option<T>) -> Self
Sourcepub fn set_stripe_count<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
pub fn set_stripe_count<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
Sets the value of stripe_count.
§Example
use wkt::Int32Value;
let x = SqlBakExportOptions::new().set_stripe_count(Int32Value::default()/* use setters */);Sourcepub fn set_or_clear_stripe_count<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
pub fn set_or_clear_stripe_count<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
Sets or clears the value of stripe_count.
§Example
use wkt::Int32Value;
let x = SqlBakExportOptions::new().set_or_clear_stripe_count(Some(Int32Value::default()/* use setters */));
let x = SqlBakExportOptions::new().set_or_clear_stripe_count(None::<Int32Value>);Sourcepub fn set_bak_type<T: Into<BakType>>(self, v: T) -> Self
pub fn set_bak_type<T: Into<BakType>>(self, v: T) -> Self
Sourcepub fn set_copy_only<T>(self, v: T) -> Self
👎Deprecated
pub fn set_copy_only<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_copy_only<T>(self, v: Option<T>) -> Self
👎Deprecated
pub fn set_or_clear_copy_only<T>(self, v: Option<T>) -> Self
Sourcepub fn set_differential_base<T>(self, v: T) -> Self
pub fn set_differential_base<T>(self, v: T) -> Self
Sets the value of differential_base.
§Example
use wkt::BoolValue;
let x = SqlBakExportOptions::new().set_differential_base(BoolValue::default()/* use setters */);Sourcepub fn set_or_clear_differential_base<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_differential_base<T>(self, v: Option<T>) -> Self
Sets or clears the value of differential_base.
§Example
use wkt::BoolValue;
let x = SqlBakExportOptions::new().set_or_clear_differential_base(Some(BoolValue::default()/* use setters */));
let x = SqlBakExportOptions::new().set_or_clear_differential_base(None::<BoolValue>);Sourcepub fn set_export_log_start_time<T>(self, v: T) -> Self
pub fn set_export_log_start_time<T>(self, v: T) -> Self
Sets the value of export_log_start_time.
§Example
use wkt::Timestamp;
let x = SqlBakExportOptions::new().set_export_log_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_export_log_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_export_log_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of export_log_start_time.
§Example
use wkt::Timestamp;
let x = SqlBakExportOptions::new().set_or_clear_export_log_start_time(Some(Timestamp::default()/* use setters */));
let x = SqlBakExportOptions::new().set_or_clear_export_log_start_time(None::<Timestamp>);Sourcepub fn set_export_log_end_time<T>(self, v: T) -> Self
pub fn set_export_log_end_time<T>(self, v: T) -> Self
Sets the value of export_log_end_time.
§Example
use wkt::Timestamp;
let x = SqlBakExportOptions::new().set_export_log_end_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_export_log_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_export_log_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of export_log_end_time.
§Example
use wkt::Timestamp;
let x = SqlBakExportOptions::new().set_or_clear_export_log_end_time(Some(Timestamp::default()/* use setters */));
let x = SqlBakExportOptions::new().set_or_clear_export_log_end_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for SqlBakExportOptions
impl Clone for SqlBakExportOptions
Source§fn clone(&self) -> SqlBakExportOptions
fn clone(&self) -> SqlBakExportOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more