#[non_exhaustive]pub struct SqlServerAuditConfig {
pub kind: String,
pub bucket: String,
pub retention_interval: Option<Duration>,
pub upload_interval: Option<Duration>,
/* private fields */
}
Expand description
SQL Server specific audit configuration.
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.kind: String
This is always sql#sqlServerAuditConfig
bucket: String
The name of the destination bucket (e.g., gs://mybucket).
retention_interval: Option<Duration>
How long to keep generated audit files.
upload_interval: Option<Duration>
How often to upload generated audit files.
Implementations§
Source§impl SqlServerAuditConfig
impl SqlServerAuditConfig
pub fn new() -> Self
Sourcepub fn set_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of bucket.
Sourcepub fn set_retention_interval<T>(self, v: T) -> Self
pub fn set_retention_interval<T>(self, v: T) -> Self
Sets the value of retention_interval.
Sourcepub fn set_or_clear_retention_interval<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_retention_interval<T>(self, v: Option<T>) -> Self
Sets or clears the value of retention_interval.
Sourcepub fn set_upload_interval<T>(self, v: T) -> Self
pub fn set_upload_interval<T>(self, v: T) -> Self
Sets the value of upload_interval.
Sourcepub fn set_or_clear_upload_interval<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_upload_interval<T>(self, v: Option<T>) -> Self
Sets or clears the value of upload_interval.
Trait Implementations§
Source§impl Clone for SqlServerAuditConfig
impl Clone for SqlServerAuditConfig
Source§fn clone(&self) -> SqlServerAuditConfig
fn clone(&self) -> SqlServerAuditConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SqlServerAuditConfig
impl Debug for SqlServerAuditConfig
Source§impl Default for SqlServerAuditConfig
impl Default for SqlServerAuditConfig
Source§fn default() -> SqlServerAuditConfig
fn default() -> SqlServerAuditConfig
Returns the “default value” for a type. Read more
Source§impl Message for SqlServerAuditConfig
impl Message for SqlServerAuditConfig
Source§impl PartialEq for SqlServerAuditConfig
impl PartialEq for SqlServerAuditConfig
impl StructuralPartialEq for SqlServerAuditConfig
Auto Trait Implementations§
impl Freeze for SqlServerAuditConfig
impl RefUnwindSafe for SqlServerAuditConfig
impl Send for SqlServerAuditConfig
impl Sync for SqlServerAuditConfig
impl Unpin for SqlServerAuditConfig
impl UnwindSafe for SqlServerAuditConfig
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