#[non_exhaustive]pub struct SqlBakImportOptions {
pub encryption_options: Option<EncryptionOptions>,
pub striped: Option<BoolValue>,
pub no_recovery: Option<BoolValue>,
pub recovery_only: Option<BoolValue>,
pub bak_type: BakType,
pub stop_at: Option<Timestamp>,
pub stop_at_mark: String,
/* private fields */
}
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.encryption_options: Option<EncryptionOptions>
§striped: Option<BoolValue>
Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.
no_recovery: Option<BoolValue>
Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server.
recovery_only: Option<BoolValue>
Whether or not the backup importing request will just bring database online without downloading Bak content only one of “no_recovery” and “recovery_only” can be true otherwise error will return. Applies only to Cloud SQL for SQL Server.
bak_type: BakType
Type of the bak content, FULL or DIFF
stop_at: Option<Timestamp>
Optional. The timestamp when the import should stop. This timestamp is in
the RFC 3339 format (for example,
2023-10-01T16:19:00.094
). This field is equivalent to the STOPAT
keyword and applies to Cloud SQL for SQL Server only.
stop_at_mark: String
Optional. The marked transaction where the import should stop. This field is equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server only.
Implementations§
Source§impl SqlBakImportOptions
impl SqlBakImportOptions
pub fn new() -> Self
Sourcepub fn set_encryption_options<T>(self, v: T) -> Selfwhere
T: Into<EncryptionOptions>,
pub fn set_encryption_options<T>(self, v: T) -> Selfwhere
T: Into<EncryptionOptions>,
Sets the value of encryption_options.
Sourcepub fn set_or_clear_encryption_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionOptions>,
pub fn set_or_clear_encryption_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<EncryptionOptions>,
Sets or clears the value of encryption_options.
Sourcepub fn set_striped<T>(self, v: T) -> Self
pub fn set_striped<T>(self, v: T) -> Self
Sets the value of striped.
Sourcepub fn set_or_clear_striped<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_striped<T>(self, v: Option<T>) -> Self
Sets or clears the value of striped.
Sourcepub fn set_no_recovery<T>(self, v: T) -> Self
pub fn set_no_recovery<T>(self, v: T) -> Self
Sets the value of no_recovery.
Sourcepub fn set_or_clear_no_recovery<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_no_recovery<T>(self, v: Option<T>) -> Self
Sets or clears the value of no_recovery.
Sourcepub fn set_recovery_only<T>(self, v: T) -> Self
pub fn set_recovery_only<T>(self, v: T) -> Self
Sets the value of recovery_only.
Sourcepub fn set_or_clear_recovery_only<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_recovery_only<T>(self, v: Option<T>) -> Self
Sets or clears the value of recovery_only.
Sourcepub fn set_bak_type<T: Into<BakType>>(self, v: T) -> Self
pub fn set_bak_type<T: Into<BakType>>(self, v: T) -> Self
Sets the value of bak_type.
Sourcepub fn set_stop_at<T>(self, v: T) -> Self
pub fn set_stop_at<T>(self, v: T) -> Self
Sets the value of stop_at.
Sourcepub fn set_or_clear_stop_at<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_stop_at<T>(self, v: Option<T>) -> Self
Sets or clears the value of stop_at.
Sourcepub fn set_stop_at_mark<T: Into<String>>(self, v: T) -> Self
pub fn set_stop_at_mark<T: Into<String>>(self, v: T) -> Self
Sets the value of stop_at_mark.
Trait Implementations§
Source§impl Clone for SqlBakImportOptions
impl Clone for SqlBakImportOptions
Source§fn clone(&self) -> SqlBakImportOptions
fn clone(&self) -> SqlBakImportOptions
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more