#[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>,
/* private fields */
}Expand description
Options for exporting BAK files (SQL Server-only)
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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
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
Implementations§
Source§impl SqlBakExportOptions
impl SqlBakExportOptions
pub fn new() -> Self
Sourcepub fn set_stripe_count<T: Into<Option<Int32Value>>>(self, v: T) -> Self
pub fn set_stripe_count<T: Into<Option<Int32Value>>>(self, v: T) -> Self
Sets the value of stripe_count.
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_copy_only<T: Into<Option<BoolValue>>>(self, v: T) -> Self
👎Deprecated
pub fn set_copy_only<T: Into<Option<BoolValue>>>(self, v: T) -> Self
Sets the value of copy_only.
Sourcepub fn set_differential_base<T: Into<Option<BoolValue>>>(self, v: T) -> Self
pub fn set_differential_base<T: Into<Option<BoolValue>>>(self, v: T) -> Self
Sets the value of differential_base.
Trait Implementations§
Source§impl Clone for SqlBakExportOptions
impl Clone for SqlBakExportOptions
Source§fn clone(&self) -> SqlBakExportOptions
fn clone(&self) -> SqlBakExportOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqlBakExportOptions
impl Debug for SqlBakExportOptions
Source§impl Default for SqlBakExportOptions
impl Default for SqlBakExportOptions
Source§fn default() -> SqlBakExportOptions
fn default() -> SqlBakExportOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SqlBakExportOptionswhere
SqlBakExportOptions: Default,
impl<'de> Deserialize<'de> for SqlBakExportOptionswhere
SqlBakExportOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for SqlBakExportOptions
impl Message for SqlBakExportOptions
Source§impl PartialEq for SqlBakExportOptions
impl PartialEq for SqlBakExportOptions
Source§impl Serialize for SqlBakExportOptions
impl Serialize for SqlBakExportOptions
impl StructuralPartialEq for SqlBakExportOptions
Auto Trait Implementations§
impl Freeze for SqlBakExportOptions
impl RefUnwindSafe for SqlBakExportOptions
impl Send for SqlBakExportOptions
impl Sync for SqlBakExportOptions
impl Unpin for SqlBakExportOptions
impl UnwindSafe for SqlBakExportOptions
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
Mutably borrows from an owned value. Read more