#[non_exhaustive]pub struct RestrictedExportConfig {
pub enabled: bool,
pub restrict_direct_table_access: bool,
pub restrict_query_result: bool,
/* private fields */
}Expand description
Restricted export config, used to configure restricted export on linked dataset.
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.enabled: boolOptional. If true, enable restricted export.
restrict_direct_table_access: boolOutput only. If true, restrict direct table access(read api/tabledata.list) on linked table.
restrict_query_result: boolOptional. If true, restrict export of query result derived from restricted linked dataset table.
Implementations§
Source§impl RestrictedExportConfig
impl RestrictedExportConfig
pub fn new() -> Self
Sourcepub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_restrict_direct_table_access<T: Into<bool>>(self, v: T) -> Self
pub fn set_restrict_direct_table_access<T: Into<bool>>(self, v: T) -> Self
Sets the value of restrict_direct_table_access.
§Example
ⓘ
let x = RestrictedExportConfig::new().set_restrict_direct_table_access(true);Sourcepub fn set_restrict_query_result<T: Into<bool>>(self, v: T) -> Self
pub fn set_restrict_query_result<T: Into<bool>>(self, v: T) -> Self
Sets the value of restrict_query_result.
§Example
ⓘ
let x = RestrictedExportConfig::new().set_restrict_query_result(true);Trait Implementations§
Source§impl Clone for RestrictedExportConfig
impl Clone for RestrictedExportConfig
Source§fn clone(&self) -> RestrictedExportConfig
fn clone(&self) -> RestrictedExportConfig
Returns a duplicate 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 RestrictedExportConfig
impl Debug for RestrictedExportConfig
Source§impl Default for RestrictedExportConfig
impl Default for RestrictedExportConfig
Source§fn default() -> RestrictedExportConfig
fn default() -> RestrictedExportConfig
Returns the “default value” for a type. Read more
Source§impl Message for RestrictedExportConfig
impl Message for RestrictedExportConfig
Source§impl PartialEq for RestrictedExportConfig
impl PartialEq for RestrictedExportConfig
impl StructuralPartialEq for RestrictedExportConfig
Auto Trait Implementations§
impl Freeze for RestrictedExportConfig
impl RefUnwindSafe for RestrictedExportConfig
impl Send for RestrictedExportConfig
impl Sync for RestrictedExportConfig
impl Unpin for RestrictedExportConfig
impl UnsafeUnpin for RestrictedExportConfig
impl UnwindSafe for RestrictedExportConfig
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